#include <string>#include <map>#include <vector>#include "ustr.h"#include "errors.h"Classes | |
| class | Value |
| This abstract base class represents all value objects. More... | |
| class | StringValue |
| This class represents string values. More... | |
| class | IntValue |
| This class represents an integer value. More... | |
| class | FloatValue |
| This class represents a floating point value. More... | |
| class | BoolValue |
| This class represents a boolean value. More... | |
| class | NullValue |
| This class represents a null object. More... | |
| class | ObjectValue |
| This class represents an object value. More... | |
| class | ArrayValue |
| This class represents an array value. More... | |
Functions | |
| Value * | ParseJSON (const std::string &input) |
| This is the main function you use to parse JSON input. | |
| std::string | Long2String (const long l) |
| Convert an integer or long value to a std::string. | |
| std::string | Double2String (const double d) |
| Convert an float or double value to a std::string. | |
| std::string Double2String | ( | const double | d | ) |
Convert an float or double value to a std::string.
| d | The floating point value to convert to a string. |
| std::string Long2String | ( | const long | l | ) |
Convert an integer or long value to a std::string.
| l | The integer value to convert to a string. |
| Value* ParseJSON | ( | const std::string & | input | ) |
This is the main function you use to parse JSON input.
The string passed in here should be a std::string of the bytes (octets) of the JSON message. This parser will figure out what encoding (UTF8, UTF16, or UTF32) was used and read the data accordingly.
| input | The input data as a std::string of bytes. |
1.5.2