All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Classes | Typedefs | Functions
nlohmann Namespace Reference

namespace for Niels Lohmann More...

Namespaces

 detail
 detail namespace with internal helper functions
 

Classes

struct  adl_serializer
 default JSONSerializer template argument More...
 
class  basic_json
 a class to store JSON values More...
 
class  json_pointer
 JSON Pointer. More...
 
struct  json_sax
 SAX interface. More...
 

Typedefs

using json = basic_json<>
 default 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

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

Definition at line 2445 of file json.hpp.

Function Documentation

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

Definition at line 22620 of file json.hpp.

22621 {
22622  return j.dump();
22623 }