C/C++ API Reference
Loading...
Searching...
No Matches
pw::NestedJsonObject Class Reference

Overview

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
 
NestedJsonObjectoperator= (const NestedJsonObject &)=delete
 
constexpr NestedJsonObject (NestedJsonObject &&)=default
 
constexpr NestedJsonObjectoperator= (NestedJsonObject &&)=default
 
template<typename T >
constexpr NestedJsonObjectAdd (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
 

The documentation for this class was generated from the following file: