These pages contain the API documentation of JSON for Modern C++, a C++11 header-only JSON class.
basic_json class
- Functions
- object inspection
- dump – value serialization
- type – type of the value
- is_primitive , is_structured , is_null , is_boolean , is_number , is_number_integer , is_number_unsigned , is_number_float , is_object , is_array , is_string , is_discarded – check for value type
- operator value_t – type of the value (implicit conversion)
- value access
- element access
- at – access array element with bounds checking
- at – access object element with bounds checking
- operator[] – access array element
- operator[] – access object element
- value – access object element with default value
- front – access the first element
- back – access the last element
- iterators
- begin, cbegin
- end, cend
- rbegin, crbegin
- rend, crend
- capacity
- empty – checks whether the container is empty
- size – returns the number of elements
- max_size – returns the maximum possible number of elements
- modifiers
- lexicographical comparison operators
- serialization
- deserialization
- Types
- Copyright
- Copyright © 2013-2016 Niels Lohmann. The code is licensed under the MIT License.
- Author
- Niels Lohmann
- See also
- https://github.com/nlohmann/json to download the source code
- Version
- 2.0.0