aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/json_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/json_handler.cc')
-rw-r--r--libtests/json_handler.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/libtests/json_handler.cc b/libtests/json_handler.cc
index 618395d5..dcc8e66e 100644
--- a/libtests/json_handler.cc
+++ b/libtests/json_handler.cc
@@ -49,8 +49,7 @@ static std::shared_ptr<JSONHandler> make_all_handler()
{
auto h = std::make_shared<JSONHandler>();
h->addDictHandlers(
- make_print_message("dict begin"),
- make_print_message("dict end"));
+ print_json, make_print_message("dict end"));
auto h1 = std::make_shared<JSONHandler>();
h1->addStringHandler(print_string);
h->addDictKeyHandler("one", h1);
@@ -77,13 +76,11 @@ static std::shared_ptr<JSONHandler> make_all_handler()
h5);
auto h6 = std::make_shared<JSONHandler>();
h6->addDictHandlers(
- make_print_message("dict begin"),
- make_print_message("dict end"));
+ print_json, make_print_message("dict end"));
auto h6a = std::make_shared<JSONHandler>();
h6->addDictKeyHandler("a", h6a);
h6a->addDictHandlers(
- make_print_message("dict begin"),
- make_print_message("dict end"));
+ print_json, make_print_message("dict end"));
auto h6ab = std::make_shared<JSONHandler>();
h6a->addDictKeyHandler("b", h6ab);
auto h6ax = std::make_shared<JSONHandler>();