mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 10:22:55 +01:00
test comment before several types
* array * double * string * true * false * null
This commit is contained in:
parent
66eb72f121
commit
37644abd77
@ -1,4 +1,5 @@
|
|||||||
.={}
|
.={}
|
||||||
|
// Comment for array
|
||||||
.test=[]
|
.test=[]
|
||||||
.test[0]={}
|
.test[0]={}
|
||||||
.test[0].a="aaa"
|
.test[0].a="aaa"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"test":
|
"test":
|
||||||
|
// Comment for array
|
||||||
[
|
[
|
||||||
{ "a" : "aaa" }, // Comment for a
|
{ "a" : "aaa" }, // Comment for a
|
||||||
{ "b" : "bbb" }, // Comment for b
|
{ "b" : "bbb" }, // Comment for b
|
||||||
|
@ -11,4 +11,13 @@
|
|||||||
// Multiline comment cpp-style
|
// Multiline comment cpp-style
|
||||||
// Second line
|
// Second line
|
||||||
.cpp-test.c=3
|
.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
|
||||||
|
@ -12,6 +12,15 @@
|
|||||||
// Multiline comment cpp-style
|
// Multiline comment cpp-style
|
||||||
// Second line
|
// Second line
|
||||||
"c" : 3,
|
"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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user