Files
openide/json/tests/testData/highlighting/ComplianceProblems.json
Andrey Starovoyt 93df237fff [json]: fix error message IJPL-149491
GitOrigin-RevId: 0735c3d66636efd8b33c3a0533c7186a811026f6
2024-05-08 20:20:39 +00:00

20 lines
1.4 KiB
JSON

{
<error descr="JSON standard does not allow comments.">/* Property key checks */</error>
"dependencies": {
<error descr="JSON standard does not allow such tokens">@foo/bar</error>: <error descr="JSON standard does not allow such tokens">^0.1</error>,
<error descr="JSON standard does not allow such tokens">foo.bar</error>: <error descr="JSON standard does not allow such tokens">=1.2</error>
},
"key1": null,
<error descr="JSON standard allows only double quoted string as property key"><error descr="JSON standard does not allow single quoted strings">'key2'</error></error>: null,
<error descr="JSON standard does not allow such tokens">key3</error>: null,
<error descr="JSON standard allows only double quoted string as property key">42</error>: null,
<error descr="JSON standard does not allow comments.">// Property value checks</error>
"key4": "foo",
"key5": <error descr="JSON standard does not allow single quoted strings">'foo'</error>,
"key6": <error descr="JSON standard does not allow such tokens">foo</error>,
"key7": [42<error descr="JSON standard does not allow trailing comma">,</error>],
"key8": false<error descr="JSON standard does not allow trailing comma">,</error>
}
<error descr="JSON standard allows only one top-level value">["another", "top-level", "value"]</error>
<error descr="JSON standard allows only one top-level value">null</error>