Monado OpenXR Runtime
|
Helper class for building cJSON trees through operator<<
More...
#include <util/u_json.hpp>
Public Member Functions | |
JSONBuilder & | operator<< (const JSONValue &value) |
Receives "[", "]", "{", "}", or any of string, const char*, double, int, bool as inputs. More... | |
JSONNode::Ptr | getBuiltNode () |
Gets the built JSONNode or crash if the construction has not finished. More... | |
Helper class for building cJSON trees through operator<<
JSONBuild is implemented with a pushdown automata to keep track of the JSON construction state.
|
inline |
Gets the built JSONNode or crash if the construction has not finished.
|
inline |
Receives "[", "]", "{", "}", or any of string, const char*, double, int, bool as inputs.
Updates the JSONBuilder state with it, after finishing the JSON tree, obtain the result with getBuiltNode.