mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-11 09:35:12 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user