json: rewrite test data for rfc7159 compliance

This commit is contained in:
Danny Robson 2015-02-02 23:01:57 +11:00
parent 0e1eaa91d3
commit f3f969c8cb
39 changed files with 41 additions and 41 deletions

View File

View File

@ -0,0 +1 @@
[False]

View File

@ -0,0 +1 @@
[Null]

View File

@ -0,0 +1 @@
[True]

View File

@ -0,0 +1 @@
[ 00 ]

View File

@ -1,3 +1 @@
{
"foo" : [1, ]
}
[1,]

View File

@ -0,0 +1 @@
[

View File

@ -0,0 +1 @@
]

View File

@ -0,0 +1 @@
[1 2]

View File

@ -0,0 +1 @@
{:"bar"}

View File

@ -0,0 +1 @@
{"foo"}

View File

@ -0,0 +1 @@
{"foo":}

View File

@ -0,0 +1 @@
false

View File

@ -0,0 +1 @@
[0,1,-1,98465]

View File

@ -0,0 +1 @@
null

View File

@ -0,0 +1,8 @@
[
1.0e5,
1.0E5,
-1.0e5,
-1.0e-5,
9.123e2,
15.0e5
]

View File

@ -0,0 +1 @@
true

View File

@ -0,0 +1,2 @@
[
]

View File

@ -1,3 +0,0 @@
{
"zero" : 0
}

View File

@ -1,3 +0,0 @@
{
"neg" : -1
}

View File

@ -1,3 +0,0 @@
{
"pos_low_exp" : 1e-5
}

View File

@ -1,3 +0,0 @@
{
"pos_high_exp" : 1e5
}

View File

@ -1,3 +0,0 @@
{
"neg_low_exp" : -4e-9
}

View File

@ -1,3 +0,0 @@
{
"neg_high_exp" : 12e15
}

View File

@ -1,3 +0,0 @@
{
"frac" : 1.7e-23
}

View File

@ -1,3 +0,0 @@
{
"foo" : true
}

View File

@ -1,3 +0,0 @@
{
"foo" : false
}

View File

@ -1,3 +0,0 @@
{
"foo" : null
}

View File

@ -1,3 +0,0 @@
{
"numbers" : [0, 1, 2, 3]
}

View File

@ -0,0 +1 @@
[[null]]

View File

@ -0,0 +1 @@
{"foo":{}}

View File

@ -0,0 +1 @@
[{}]

View File

@ -0,0 +1 @@
{"foo":[]}

View File

@ -1,5 +0,0 @@
{
"obj" : {
"foo": "bar"
}
}

View File

@ -0,0 +1,12 @@
[
"foo\tbar",
"\"",
"\\",
"\/",
"\b",
"\f",
"\n",
"\r",
"\t",
"\u0062"
]