Macros¶
JasonPP comes with a handful of macros to make the syntax look a little neater.
Without much explaining, here they are:
#define AsNull
GetNullData()
#define AsBool
GetBoolData()
#define AsInt
GetIntData()
#define AsFloat
GetFloatData()
#define AsString
GetStringData()
#define AsJson
GetJsonData()
#define AsArray
GetArrayData()
#define Arr std::vector<JasonPP::
JsonData
>
#define Ele JasonPP::
JsonElement