From f4f2ec7f8b8bfea31517af5a9fb78c4b8a9de2b4 Mon Sep 17 00:00:00 2001 From: recsater Date: Wed, 28 Jun 2023 15:00:30 +0900 Subject: [PATCH] Update mapper.h --- include/struct_mapping/mapper.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/struct_mapping/mapper.h b/include/struct_mapping/mapper.h index f91ae5f..bf4cc4c 100644 --- a/include/struct_mapping/mapper.h +++ b/include/struct_mapping/mapper.h @@ -191,9 +191,8 @@ inline void map_struct_to_json( json_data << "null"; } - } - - first_element = false; + first_element = false; + } }; detail::IterateOver::set = [&] (const std::string& name, bool value) @@ -508,4 +507,4 @@ inline void map_struct_to_json( detail::Object::iterate_over(source_struct, ""); } -} // struct_mapping \ No newline at end of file +} // struct_mapping