Be clear that empty lists and objects are allowed, and are failing

This commit is contained in:
Eric Fischer 2018-08-14 12:10:50 -07:00
parent 0b8dc68a03
commit 04adb8beba
2 changed files with 5 additions and 3 deletions

View File

@ -18,11 +18,11 @@
, ,
{ "type": "Feature", "properties": { "more2": {"something":{"type":"Point","coordinates":[2,2]}} }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } } { "type": "Feature", "properties": { "more2": {"something":{"type":"Point","coordinates":[2,2]}} }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } }
, ,
{ "type": "Feature", "properties": { "nested": {"type":"Feature","properties":null,"geometry":{"type":"Point","coordinates":[2,2]}} }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } } { "type": "Feature", "properties": { "nested": {"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[2,2]}} }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } }
, ,
{ "type": "Feature", "properties": { "deeper": [{"type":"Feature","properties":null,"geometry":{"type":"Point","coordinates":[2,2]}}] }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } } { "type": "Feature", "properties": { "deeper": [{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[2,2]}}] }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } }
, ,
{ "type": "Feature", "properties": { "more": {"something":{"type":"Feature","properties":null,"geometry":{"type":"Point","coordinates":[2,2]}}} }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } } { "type": "Feature", "properties": { "more": {"something":{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[2,2]}}} }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } }
, ,
{ "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } } { "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ 0.000000, 0.000000 ], [ 0.966797, 1.054628 ] ] } }
] } ] }

View File

@ -9,6 +9,8 @@
"array": [ "array": [
"string", 10, null, true, false, [ 1, 2, 3 ], { "this": "that" } "string", 10, null, true, false, [ 1, 2, 3 ], { "this": "that" }
], ],
"emptylist": [],
"emptyhash": {},
"nest": { "something": "else" } "nest": { "something": "else" }
} }
}, "geometry": { "type": "Point", "coordinates": [ 0,0 ]} } }, "geometry": { "type": "Point", "coordinates": [ 0,0 ]} }