From 1db0a7ffcee6f6ae6bd3298a960665378d304fa1 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 20 Jan 2022 08:53:53 -0500 Subject: JSONHandler: rework dictionary and array handlers --- libtests/qtest/json_handler/json_handler.out | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libtests/qtest') diff --git a/libtests/qtest/json_handler/json_handler.out b/libtests/qtest/json_handler/json_handler.out index 13554af3..368c94b5 100644 --- a/libtests/qtest/json_handler/json_handler.out +++ b/libtests/qtest/json_handler/json_handler.out @@ -1,22 +1,31 @@ -- scalar -- .: string: potato -- all -- +.: json: dict begin +.five: json: array begin .five[0]: string: x .five[1]: bool: false .five[2]: string: y .five[3]: null .five[4]: bool: true +.five: json: array end .four: json: [ "a", 1 ] .one: string: potato .phour: json: null +.six: json: dict begin +.six.a: json: dict begin .six.a.Q: json: "baaa" .six.a.b: string: quack +.six.a: json: dict end .six.b: string: moo +.six: json: dict end .three: bool: true .two: number: 3.14 +.: json: dict end -- errors -- bad type at top: JSON handler: value at . is not of expected type +.: json: dict begin unexpected key: JSON handler found unexpected key x in object at . -- cgit v1.2.3-54-g00ecf