Simox  2.3.74.0
nlohmann Namespace Reference

namespace for Niels Lohmann More...

Namespaces

 detail
 detail namespace with internal helper functions
 

Data Structures

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

json read_json (const std::string &filename)
 
json read_json (std::istream &is)
 
void write_json (const std::string &filename, const json &j, const int indent=-1, const char indent_char=' ')
 
void write_json (std::ostream &os, const json &j, const int indent=-1, const char indent_char=' ')
 

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

Function Documentation

◆ read_json() [1/2]

nlohmann::json nlohmann::read_json ( const std::string &  filename)

◆ read_json() [2/2]

nlohmann::json nlohmann::read_json ( std::istream &  is)

◆ write_json() [1/2]

void nlohmann::write_json ( const std::string &  filename,
const json j,
const int  indent = -1,
const char  indent_char = ' ' 
)

◆ write_json() [2/2]

void nlohmann::write_json ( std::ostream &  os,
const json j,
const int  indent = -1,
const char  indent_char = ' ' 
)