mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-25 15:46:03 +01:00

Newlines from comments separated by lines are retained when comments are appended, so adding a newline between separate comments for a node is not needed.
18 lines
274 B
JSON
18 lines
274 B
JSON
{
|
|
/* C-style comment
|
|
|
|
C-style-2 comment */
|
|
"c-test" : {
|
|
"a" : 1,
|
|
/* Internal comment c-style */
|
|
"b" : 2
|
|
},
|
|
// C++-style comment
|
|
"cpp-test" : {
|
|
// Multiline comment cpp-style
|
|
// Second line
|
|
"c" : 3,
|
|
"d" : 4
|
|
}
|
|
}
|