diff options
Diffstat (limited to 'libbutl/json/serializer.ixx')
-rw-r--r-- | libbutl/json/serializer.ixx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libbutl/json/serializer.ixx b/libbutl/json/serializer.ixx index 50fe397..ac6ea22 100644 --- a/libbutl/json/serializer.ixx +++ b/libbutl/json/serializer.ixx @@ -81,6 +81,20 @@ namespace butl next (event::name, {n.c_str (), n.size ()}, c); } + inline void buffer_serializer:: + member_begin_object (const char* n, bool c) + { + member_name (n, c); + begin_object (); + } + + inline void buffer_serializer:: + member_begin_object (const std::string& n, bool c) + { + member_name (n, c); + begin_object (); + } + template <typename T> inline void buffer_serializer:: member (const char* n, const T& v, bool c) @@ -104,6 +118,20 @@ namespace butl } inline void buffer_serializer:: + member_begin_array (const char* n, bool c) + { + member_name (n, c); + begin_array (); + } + + inline void buffer_serializer:: + member_begin_array (const std::string& n, bool c) + { + member_name (n, c); + begin_array (); + } + + inline void buffer_serializer:: end_array () { next (event::end_array); |