From 4c7cfd5cbc64c34b4532aad0d87e4c81e2277b02 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 14 May 2022 10:11:52 -0400 Subject: JSON reactor: improve handling of nested containers Call the parent container's item method before calling the child item's start method so we can easily know the current nesting level when nested items are added. --- libtests/qtest/json_parse/good-04-react.out | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libtests/qtest/json_parse/good-04-react.out') diff --git a/libtests/qtest/json_parse/good-04-react.out b/libtests/qtest/json_parse/good-04-react.out index bd18ccfc..ded004b2 100644 --- a/libtests/qtest/json_parse/good-04-react.out +++ b/libtests/qtest/json_parse/good-04-react.out @@ -1,16 +1,16 @@ array start -array start array item: [1, 0): [] array start array item: [2, 0): [] -dictionary start +array start array item: [3, 0): {} +dictionary start container end: [3, 5): {} container end: [2, 6): [] -dictionary start array item: [8, 0): {} dictionary start dictionary item: -> [13, 0): {} +dictionary start container end: [13, 15): {} container end: [8, 16): {} container end: [1, 17): [] -- cgit v1.2.3-54-g00ecf