mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-09 12:04:28 +08:00
fix(#887): regressions, unit tests
- JSONArray now evaluates EOF accordingly for empty Array inputs. - JSONTokener fixed indentation - externalized two JSONMLTest cases
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
[
|
||||
"addresses",
|
||||
{
|
||||
"xsi:noNamespaceSchemaLocation": "test.xsd",
|
||||
"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
|
||||
},
|
||||
[
|
||||
"address",
|
||||
{
|
||||
"addrType": "my address"
|
||||
},
|
||||
[
|
||||
"name",
|
||||
{
|
||||
"nameType": "my name"
|
||||
},
|
||||
"Joe Tester"
|
||||
],
|
||||
[
|
||||
"street",
|
||||
"Baker street 5"
|
||||
],
|
||||
[
|
||||
"NothingHere",
|
||||
{
|
||||
"except": "an attribute"
|
||||
}
|
||||
],
|
||||
[
|
||||
"TrueValue",
|
||||
true
|
||||
],
|
||||
[
|
||||
"FalseValue",
|
||||
false
|
||||
],
|
||||
[
|
||||
"NullValue",
|
||||
null
|
||||
],
|
||||
[
|
||||
"PositiveValue",
|
||||
42
|
||||
],
|
||||
[
|
||||
"NegativeValue",
|
||||
-23
|
||||
],
|
||||
[
|
||||
"DoubleValue",
|
||||
-23.45
|
||||
],
|
||||
[
|
||||
"Nan",
|
||||
"-23x.45"
|
||||
],
|
||||
[
|
||||
"ArrayOfNum",
|
||||
[
|
||||
"value",
|
||||
1
|
||||
],
|
||||
[
|
||||
"value",
|
||||
2
|
||||
],
|
||||
[
|
||||
"value",
|
||||
[
|
||||
"subValue",
|
||||
{
|
||||
"svAttr": "svValue"
|
||||
},
|
||||
"abc"
|
||||
]
|
||||
],
|
||||
[
|
||||
"value",
|
||||
3
|
||||
],
|
||||
[
|
||||
"value",
|
||||
4.1
|
||||
],
|
||||
[
|
||||
"value",
|
||||
5.2
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
Reference in New Issue
Block a user