diff options
Diffstat (limited to 'libbutl/json/serializer.hxx')
-rw-r--r-- | libbutl/json/serializer.hxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libbutl/json/serializer.hxx b/libbutl/json/serializer.hxx index b52bf65..5192cb4 100644 --- a/libbutl/json/serializer.hxx +++ b/libbutl/json/serializer.hxx @@ -167,10 +167,21 @@ namespace butl // Begin/end an object. // + // The member_begin_object() version is a shortcut for: + // + // member_name (name, check); + // begin_object (); + // void begin_object (); void + member_begin_object (const char*, bool check = true); + + void + member_begin_object (const std::string&, bool check = true); + + void end_object (); // Serialize an object member (name and value). @@ -199,10 +210,21 @@ namespace butl // Begin/end an array. // + // The member_begin_array() version is a shortcut for: + // + // member_name (name, check); + // begin_array (); + // void begin_array (); void + member_begin_array (const char*, bool check = true); + + void + member_begin_array (const std::string&, bool check = true); + + void end_array (); // Serialize a string. |