![]() | InDesign SDK 20.5 |
Public Types | |
| enum | Type { type_List, type_Map, type_String, type_Number, type_Bool, type_Null } |
Public Member Functions | |
| JSON (Tree inputValue) | |
| Tree | GetTree () |
| bool | IsEmpty () |
| std::string | GetString (std::string key) |
| std::string | GetString () |
| uint64 | GetNumber (std::string key) |
| double | GetDouble (const std::string &key) |
| float | GetFloat (const std::string &key) |
| bool | GetBoolean (const std::string &key) |
| void | GetListAt (std::string key, JSONArray &outputArray) |
| void | GetJSONAt (std::string key, JSON &output) |
| Type | GetType (std::string key) |
| bool | checkKey (std::string key) |
| bool | isMap (std::string key) |
| bool | IsKeyPresent (std::string key) |
| bool | isList (std::string key) |
| bool | isNumber (std::string key) |
| bool | isString (std::string key) |
| bool | isBool (std::string key) |
| void | addValue (std::string key, std::string val) |
| void | read_json (std::stringstream &sstream) |
| void | write_json (std::stringstream &stream, bool ispretty=false) |
| void | write_json (std::string &str, bool ispretty=false) |
| void | AddValue (std::string key, bool val) |
| void | AddValue (std::string key, float val) |
| void | AddValue (std::string key, double val) |
| void | AddValue (std::string key, int val) |
| void | AddValue (std::string key, Tree val) |
| void | PutValue (std::string key, Tree val) |
| void | AddValue (std::string key, JSONArray val) |
| void | PushValue (std::string key, Tree val) |