A JsonObject nested inside an array or object. Only provides functions for adding key-value pairs to the nested object.
A NestedJsonObject is immediately invalidated if the enclosing JSON is updated. Attempting to add to the nested object fails an assertion.
Public Member Functions | |
| NestedJsonObject (const NestedJsonObject &)=delete | |
| NestedJsonObject & | operator= (const NestedJsonObject &)=delete |
| constexpr | NestedJsonObject (NestedJsonObject &&)=default |
| constexpr NestedJsonObject & | operator= (NestedJsonObject &&)=default |
| template<typename T > | |
| constexpr NestedJsonObject & | Add (std::string_view key, const T &value) |
| Adds a key-value pair to the nested object. | |
| constexpr NestedJsonArray | AddNestedArray (std::string_view key) |
| Adds a nested array to the nested object. | |
| constexpr NestedJsonObject | AddNestedObject (std::string_view key) |
| Adds a nested object to the nested object. | |
Friends | |
| class | JsonArray |
| class | JsonObject |
| class | NestedJsonArray |