Ditto 3.0.3-alpha2
Classes | Typedefs | Functions
nlohmann Namespace Reference

namespace for Niels Lohmann More...

Classes

struct  adl_serializer
 default JSONSerializer template argument
 
class  basic_json
 a class to store JSON values
 
class  byte_container_with_subtype
 an internal type for a backed binary type
 
class  json_pointer
 JSON Pointer.
 
struct  json_sax
 SAX interface.
 
struct  ordered_map
 

Typedefs

using json = basic_json<>
 default JSON class More...
 
using ordered_json = basic_json< nlohmann::ordered_map >
 ordered JSON class More...
 

Functions

NLOHMANN_BASIC_JSON_TPL_DECLARATION std::string to_string (const NLOHMANN_BASIC_JSON_TPL &j)
 user-defined to_string function for JSON values More...
 

Detailed Description

namespace for Niels Lohmann

namespace to hold default to_json function

See also
https://github.com/nlohmann
Since
version 1.0.0

Typedef Documentation

◆ json

using nlohmann::json = typedef basic_json<>

default JSON class

This type is the default specialization of the basic_json class which uses the standard template types.

Since
version 1.0.0

◆ ordered_json

using nlohmann::ordered_json = typedef basic_json<nlohmann::ordered_map>

ordered JSON class

This type preserves the insertion order of object keys.

Since
version 3.9.0

Function Documentation

◆ to_string()

NLOHMANN_BASIC_JSON_TPL_DECLARATION std::string nlohmann::to_string ( const NLOHMANN_BASIC_JSON_TPL &  j)

user-defined to_string function for JSON values

This function implements a user-defined to_string for JSON objects.

Parameters
[in]ja JSON object
Returns
a std::string object