|
brace
Incredibly simple JSON parser in C++
|
A JSON parsing class for converting JSON strings to JsonValue objects. More...
#include <brace.h>
Public Member Functions | |
| Result< JsonValue, ParseError > | parse (const std::string &json) |
| Parses a JSON-formatted string into a JsonValue. | |
A JSON parsing class for converting JSON strings to JsonValue objects.
This class provides functionality to parse JSON-formatted strings into strongly-typed JsonValue objects. It handles various JSON data types and provides error reporting through the ParseError mechanism.
The parser supports:
| Result< JsonValue, ParseError > brace::Parser::parse | ( | const std::string & | json | ) |
Parses a JSON-formatted string into a JsonValue.
Attempts to convert a JSON-formatted string into a structured JsonValue that can represent various JSON data types.
| json | The JSON-formatted string to parse |