diff --git a/test/data/test_comment_01.expected b/test/data/test_comment_01.expected index 2a7f00c..d8548d1 100644 --- a/test/data/test_comment_01.expected +++ b/test/data/test_comment_01.expected @@ -1,4 +1,5 @@ .={} +// Comment for array .test=[] .test[0]={} .test[0].a="aaa" diff --git a/test/data/test_comment_01.json b/test/data/test_comment_01.json index 7363490..db7c6a4 100644 --- a/test/data/test_comment_01.json +++ b/test/data/test_comment_01.json @@ -1,5 +1,6 @@ { "test": + // Comment for array [ { "a" : "aaa" }, // Comment for a { "b" : "bbb" }, // Comment for b diff --git a/test/data/test_comment_02.expected b/test/data/test_comment_02.expected index 88d2bd0..8986dba 100644 --- a/test/data/test_comment_02.expected +++ b/test/data/test_comment_02.expected @@ -11,4 +11,13 @@ // Multiline comment cpp-style // Second line .cpp-test.c=3 -.cpp-test.d=4 +// Comment before double +.cpp-test.d=4.1 +// Comment before string +.cpp-test.e="e-string" +// Comment before true +.cpp-test.f=true +// Comment before false +.cpp-test.g=false +// Comment before null +.cpp-test.h=null diff --git a/test/data/test_comment_02.json b/test/data/test_comment_02.json index 297d889..f5042e0 100644 --- a/test/data/test_comment_02.json +++ b/test/data/test_comment_02.json @@ -12,6 +12,15 @@ // Multiline comment cpp-style // Second line "c" : 3, - "d" : 4 + // Comment before double + "d" : 4.1, + // Comment before string + "e" : "e-string", + // Comment before true + "f" : true, + // Comment before false + "g" : false, + // Comment before null + "h" : null } }