Skip to content
JasonPP::

JSON_DATA_TYPE

enum class JSON_DATA_TYPE


An enum class containing all possible json data types.

The naming is not based on the values C++ data types, but on their Json types. So, even though all decimal numbers are stored as long double's, they are under the enum FLOAT.

Because this is a rather long name, you can also use its alias/typdef JDType

__NULL__

short (will always be NULL)

BOOL

bool

INT

long long int

FLOAT

long double

STRING

std::string

JSON

JsonBlock

ARRAY

JsonArray

Converting to string

If you want to convert these enum values to string, for some weird reason, use:

JsonDataType2String()