#include <json.h>
Public Member Functions | |
| CscJsonParser (const fs::path &filePath) | |
| CscJsonParser (const string &jsonContent) | |
Public Member Functions inherited from conscience_utils::JSON::CscJsonObjectReader | |
| vector< string > | getKeys () |
| bool | hasKey (const string &key) |
| bool | isArray (const string &key) |
| unsigned | getArrayLength (const string &arrayKey) |
| bool | isNull (const string &key) |
| string | getRequiredStringValue (const string &key, bool allowEmpty=false) |
| optional< int > | getIntValue (const string &key) |
| int | getRequiredIntValue (const string &key) |
| optional< unsigned long long > | getUnsignedLongValue (const string &key) |
| unsigned long long | getRequiredUnsignedLongValue (const string &key) |
| optional< bool > | getBooleanValue (const string &key) |
| bool | getRequiredBooleanValue (const string &key) |
| optional< double > | getDoubleValue (const string &key) |
| double | getRequiredDoubleValue (const string &key) |
| optional< float > | getFloatValue (const string &key) |
| float | getRequiredFloatValue (const string &key) |
| optional< string > | getStringValue (const string &key) |
| CscJsonObjectReader | getRequiredObjectValue (const string &key) |
| optional< CscJsonObjectReader > | getObjectValue (const string &key) |
| CscJsonObjectReader * | getRequiredObjectPtrValue (const string &key) |
| optional< CscJsonObjectReader * > | getObjectPtrValue (const string &key) |
| ptr< CscJsonObjectReader > | getRequiredObjectSharedPtrValue (const string &key) |
| optional< ptr< CscJsonObjectReader > > | getObjectSharedPtrValue (const string &key) |
| map< string, optional< any > > | getRequiredObjectValueAsMap (const string &key) |
| map< string, string > | getRequiredObjectValueAsMapOfStrings (const string &key) |
| optional< map< string, optional< any > > > | getObjectValueAsMap (const string &key) |
| optional< any > | getAnyValue (string key) |
| template<class T > | |
| vector< T > | getRequiredArrayValue (const string &key) |
| template<class T > | |
| optional< vector< T > > | getArrayValue (const string &key) |
| template<class T > | |
| optional< T > | getArrayItemValue (const string &arrayKey, size_t index) |
| template<class T > | |
| T | getRequiredArrayItemValue (const string &arrayKey, size_t index) |
| template<class T > | |
| vector< T > | asArrayValue () |
| CscJsonObjectReader (ptr< yyjson_doc > yyjsonDoc, yyjson_val *yyjsonValue=nullptr, bool doNotReleaseYyjsonObjects=false) | |
| CscJsonObjectReader (const fs::path filePath) | |
| CscJsonObjectReader (const string &jsonContent) | |
| virtual | ~CscJsonObjectReader () |
| string | toString () |
| string | toJsonString (bool prettyPrint=false) |
| CscJsonObject * | toMutable (yyjson_mut_doc *parentDoc=nullptr) |
| yyjson_val * | getLowLevelParser () |
Additional Inherited Members | |
Static Public Member Functions inherited from conscience_utils::JSON::CscJsonObjectReader | |
| static vector< CscJsonObject * > | toMutableList (const vector< ptr< CscJsonObjectReader >> values) |
Protected Member Functions inherited from conscience_utils::JSON::CscJsonObjectReader | |
| virtual ptr< yyjson_doc > | getYyjsonDoc () |
| virtual yyjson_val * | getYyjsonValue () |
| yyjson_val * | getValueByPropertyPath (const string &propertyPath) |
Static Protected Member Functions inherited from conscience_utils::JSON::CscJsonObjectReader | |
| static ptr< yyjson_doc > | createYyjsonSharedPtr (yyjson_doc *doc) |
| static yyjson_doc * | parseFromFile (const fs::path filePath) |
| static yyjson_doc * | parseFromString (const string &jsonString) |
Protected Attributes inherited from conscience_utils::JSON::CscJsonObjectReader | |
| ptr< yyjson_doc > | yyjsonDoc = nullptr |
| yyjson_val * | yyjsonValue = nullptr |
| conscience_utils::JSON::CscJsonParser::CscJsonParser | ( | const fs::path & | filePath | ) |
| conscience_utils::JSON::CscJsonParser::CscJsonParser | ( | const string & | jsonContent | ) |