JSON for Modern C++  2.0.0
index.md
1 # JSON for Modern C++
2 
3 These pages contain the API documentation of JSON for Modern C++, a C++11 header-only JSON class.
4 
5 - @link nlohmann::basic_json `basic_json` class @endlink
6 - [Functions](functions_func.html)
7  - object inspection
8  - @link nlohmann::basic_json::dump dump @endlink -- value serialization
9  - @link nlohmann::basic_json::type type @endlink -- type of the value
10  - @link nlohmann::basic_json::is_primitive is_primitive @endlink,
11  @link nlohmann::basic_json::is_structured is_structured @endlink,
12  @link nlohmann::basic_json::is_null is_null @endlink,
13  @link nlohmann::basic_json::is_boolean is_boolean @endlink,
14  @link nlohmann::basic_json::is_number is_number @endlink,
15  @link nlohmann::basic_json::is_number_integer is_number_integer @endlink,
16  @link nlohmann::basic_json::is_number_unsigned is_number_unsigned @endlink,
17  @link nlohmann::basic_json::is_number_float is_number_float @endlink,
18  @link nlohmann::basic_json::is_object is_object @endlink,
19  @link nlohmann::basic_json::is_array is_array @endlink,
20  @link nlohmann::basic_json::is_string is_string @endlink,
21  @link nlohmann::basic_json::is_discarded is_discarded @endlink -- check for value type
22  - @link nlohmann::basic_json::operator value_t() const operator value_t @endlink -- type of the value (implicit conversion)
23  - value access
24  - @link nlohmann::basic_json::get get @endlink -- get a value
25  - @link nlohmann::basic_json::get_ptr get_ptr @endlink -- get a value pointer
26  - @link nlohmann::basic_json::get_ref get_ref @endlink -- get a value reference
27  - @link nlohmann::basic_json::operator ValueType() const operator ValueType @endlink -- get a value (implicit conversion)
28  - element access
29  - @link nlohmann::basic_json::at(size_type) at @endlink -- access array element with bounds checking
30  - @link nlohmann::basic_json::at(const typename object_t::key_type & key) at @endlink -- access object element with bounds checking
31  - @link nlohmann::basic_json::operator[](size_type) operator[] @endlink -- access array element
32  - @link nlohmann::basic_json::operator[](const typename object_t::key_type & key) operator[] @endlink -- access object element
33  - @link nlohmann::basic_json::value value @endlink -- access object element with default value
34  - @link nlohmann::basic_json::front front @endlink -- access the first element
35  - @link nlohmann::basic_json::back back @endlink -- access the last element
36  - iterators
37  - begin, cbegin
38  - end, cend
39  - rbegin, crbegin
40  - rend, crend
41  - capacity
42  - @link nlohmann::basic_json::empty empty @endlink -- checks whether the container is empty
43  - @link nlohmann::basic_json::size size @endlink -- returns the number of elements
44  - @link nlohmann::basic_json::max_size max_size @endlink -- returns the maximum possible number of elements
45  - modifiers
46  - @link nlohmann::basic_json::clear clear @endlink -- clears the contents
47  - @link nlohmann::basic_json::push_back(const nlohmann::basic_json &) push_back @endlink -- add an object to an array
48  - @link nlohmann::basic_json::operator+=(const nlohmann::basic_json &) operator+= @endlink -- add an object to an array
49  - @link nlohmann::basic_json::insert insert @endlink -- inserts elements
50  - @link nlohmann::basic_json::swap swap @endlink -- exchanges the values
51  - lexicographical comparison operators
52  - serialization
53  - deserialization
54 - Types
55  - @link nlohmann::basic_json::array_t arrays @endlink
56  - @link nlohmann::basic_json::object_t objects @endlink
57  - @link nlohmann::basic_json::string_t strings @endlink
58  - @link nlohmann::basic_json::boolean_t booleans @endlink
59  - numbers
60  - @link nlohmann::basic_json::number_integer_t signed integers @endlink
61  - @link nlohmann::basic_json::number_unsigned_t unsigned integers @endlink
62  - @link nlohmann::basic_json::number_float_t floating-point @endlink
63 
64 @copyright Copyright © 2013-2016 Niels Lohmann. The code is licensed under the [MIT License](http://opensource.org/licenses/MIT).
65 
66 @author [Niels Lohmann](http://nlohmann.me)
67 @see https://github.com/nlohmann/json to download the source code
68 
69 @version 2.0.0