Tests/string(JSON): Add comments to test case

Verify that our current JSON parsing allows comments (but throws them
away).
This commit is contained in:
Tyler Yankee
2026-08-03 19:51:26 -04:00
parent 7e4e036531
commit 76026ce818

View File

@@ -48,6 +48,7 @@ endif()
set(json1 [=[
{
// This is a comment
"foo" : "bar",
"array" : [5, "val", {"some": "other"}, null],
"types" : {
@@ -66,7 +67,7 @@ set(json1 [=[
"true" : true
},
"object": {
"foo": "bar"
"foo": "bar" // This is an inline comment
},
"special" : {
"foo;bar" : "value1",