[gdal-dev] GeoJSON: json as string

Even Rouault even.rouault at spatialys.com
Thu Feb 22 11:32:11 PST 2024


Jukka,
>
> I am looking at a question in gis.stackexchange 
> https://gis.stackexchange.com/questions/476489/geojson-item-considered-a-json-instead-of-a-string. 
> I thought that open option ARRAY_AS_STRING would have some effect on 
> opening the test data, but it does not. Ogrinfo returns String(JSON) 
> with both YES and NO
> key (String(JSON)) = { "start": "2000-01-01", "end": "2023-11-30" }
>
> Have I understood something wrong?
>
{ "start": "2000-01-01", "end": "2023-11-30" } is not a JSON array, but 
a JSON object/dict, hence the ARRAY_AS_STRING has no effect on that 
property.

It would only affect something like [ "2000-01-01", "2023-11-30" ]

Even

-- 

http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240222/af260a8e/attachment.htm>


More information about the gdal-dev mailing list