-
Notifications
You must be signed in to change notification settings - Fork 226
Open
Labels
questionverifyPotential bug, needs a test and possibly a fixPotential bug, needs a test and possibly a fix
Description
This works
wicket.read('{"coordinates": [[[30, 10], [10, 20], [20, 40], [40, 40], [30, 10]]], "type": "Polygon"}');
This does not work
wicket.read('{"coordinates" : [[[30, 10], [10, 20], [20, 40], [40, 40], [30, 10]]], "type" : "Polygon"}');
The difference being a space after coordinates in the second example.
Here is a quick fix
wicket.read(JSON.stringify(JSON.parse('{"coordinates" : [[[30, 10], [10, 20], [20, 40], [40, 40], [30, 10]]], "type" : "Polygon"}')));
Metadata
Metadata
Assignees
Labels
questionverifyPotential bug, needs a test and possibly a fixPotential bug, needs a test and possibly a fix