10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::json::cjson::cJSONParser Class Reference

#include <CJsonParser.h>

Detailed Description

cJSON-implementation of tenduke::json::JSONParser.

Inheritance diagram for tenduke::json::cjson::cJSONParser:
tenduke::json::JSONParser

Public Member Functions

 cJSONParser ()
 Constructs new instance.
 
std::unique_ptr< JSONElementfrom (const std::string &string) const override
 Parses JSON from given string.
 
std::unique_ptr< JSONElementfrom (const char *jsonAsString, std::size_t length) const override
 Parses JSON from given string.
 

Member Function Documentation

◆ from() [1/2]

std::unique_ptr< xdjson::JSONElement > tenduke::json::cjson::cJSONParser::from ( const char *  jsonAsString,
std::size_t  length 
) const
overridevirtual

Parses JSON from given string.

Exceptions
JSONParsingExceptionwhen the JSON parsing failed for various reasons.

Implements tenduke::json::JSONParser.

◆ from() [2/2]

std::unique_ptr< xdjson::JSONElement > tenduke::json::cjson::cJSONParser::from ( const std::string &  string) const
overridevirtual

Parses JSON from given string.

Exceptions
JSONParsingExceptionwhen the JSON parsing failed for various reasons.

Implements tenduke::json::JSONParser.


The documentation for this class was generated from the following files: