namespace for Niels Lohmann More...
Namespaces | |
| namespace | detail |
| detail namespace with internal helper functions | |
Typedefs | |
| using | json = basic_json<> |
| default specialization More... | |
| using | ordered_json = basic_json< nlohmann::ordered_map > |
| specialization that maintains the insertion order of object keys More... | |
Functions | |
| template<class T > | |
| void | from_json (const nlohmann::json &j, std::optional< T > &v) |
| template<class T > | |
| void | to_json (nlohmann::json &j, const std::optional< T > &v) |
| template<template< typename, typename, typename... > class ObjectType, template< typename, typename... > class ArrayType, class StringType , class BooleanType , class NumberIntegerType , class NumberUnsignedType , class NumberFloatType , template< typename > class AllocatorType, template< typename, typename=void > class JSONSerializer, class BinaryType > | |
| std::string | to_string (const basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType > &j) |
| user-defined to_string function for JSON values More... | |
namespace for Niels Lohmann
namespace to hold default to_json function to see why this is required: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html
| using nlohmann::json = typedef basic_json<> |
default specialization
| using nlohmann::ordered_json = typedef basic_json<nlohmann::ordered_map> |
specialization that maintains the insertion order of object keys
| std::string nlohmann::to_string | ( | const basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType > & | j | ) |
user-defined to_string function for JSON values