Free Electron
|
Interface for reading JSON from a char array. More...
#include <reader.h>
Public Member Functions | |
virtual bool | parse (char const *beginDoc, char const *endDoc, Value *root, String *errs)=0 |
Read a Value from a JSON document. More... | |
Interface for reading JSON from a char array.
|
pure virtual |
Read a Value from a JSON document.
The document must be a UTF-8 encoded string containing the document to read.
beginDoc | Pointer on the beginning of the UTF-8 encoded string of the document to read. | |
endDoc | Pointer on the end of the UTF-8 encoded string of the document to read. Must be >= beginDoc. | |
[out] | root | Contains the root value of the document if it was successfully parsed. |
[out] | errs | Formatted error messages (if not NULL) a user friendly string that lists errors in the parsed document. |
true
if the document was successfully parsed, false
if an error occurred.