Interface for reading JSON from a char array.  
 More...
#include <json/reader.h>
Interface for reading JSON from a char array. 
Definition at line 245 of file reader.h.
◆ ~CharReader()
  
  | 
        
          | virtual Json::CharReader::~CharReader | ( |  | ) |  |  | virtualdefault | 
 
 
◆ CharReader()
  
  | 
        
          | Json::CharReader::CharReader | ( | std::unique_ptr< Impl > | impl | ) |  |  | inlineexplicitprotected | 
 
 
◆ getStructuredErrors()
Returns a vector of structured errors encountered while parsing. 
Each parse call resets the stored list of errors. 
Definition at line 1982 of file json_reader.cpp.
 
 
◆ parse()
  
  | 
        
          | bool Json::CharReader::parse | ( | char const * | beginDoc, |  
          |  |  | char const * | endDoc, |  
          |  |  | Value * | root, |  
          |  |  | String * | errs ) |  | virtual | 
 
Read a Value from a JSON document. 
The document must be a UTF-8 encoded string containing the document to read.
- Parameters
- 
  
    |  | 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. |  
 
- Returns
- trueif the document was successfully parsed,- falseif an error occurred.
Definition at line 1986 of file json_reader.cpp.
 
 
The documentation for this class was generated from the following files: