|
BDE 4.14.0 Production release
|
Enumerate the set of JSON value types.
enum of JSON value typesThis component provides a namespace for the enum type bdljsn::JsonType::Enum, which enumerates the set of fundamental JSON types in the JSON specification (see http://json.org).
This section illustrates intended use of this component.
The following snippets of code provide a simple illustration of using bdljsn::JsonType.
First, we create a variable value of type bdljsn::JsonType::Enum and initialize it with the enumerator value bdljsn::JsonType::e_STRING:
Now, we store the address of its ASCII representation in a pointer variable, asciiValue, of type const char *:
Finally, we print value to bsl::cout.
This statement produces the following output on stdout: