Opened 5 years ago
Last modified 5 years ago
#19632 closed enhancement
[PATCH] Try to convert keys to json values prior to saving — at Version 1
| Reported by: | taylor.smock | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 20.08 |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description (last modified by )
{ "type": "FeatureCollection", "generator": "JOSM", "features": [ { "type": "Feature", "properties": { "array": "[\"obj1\", \"obj2\"]", "dict": "{"\key1\": \"value1\"}" }, "geometry": { "type": "Point", "coordinates": [ 0, 0 ] } } ] }
vs.
{ "type": "FeatureCollection", "generator": "JOSM", "features": [ { "type": "Feature", "properties": { "array": ["obj1", "obj2"], "dict": {"key1": "value1"} }, "geometry": { "type": "Point", "coordinates": [ 0, 0 ] } } ] }
Possible issues: The value was actually supposed to be a string instead of an array/dict/etc.
Change History (2)
by , 5 years ago
| Attachment: | 19632.patch added |
|---|
comment:1 by , 5 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.



Try to use JsonValues when it makes sense (try to parse the tag value, falls back to JsonString of the value)