[Qgis-developer] Manipulating JSON files from Python

Pēteris Brūns pb at sungis.lv
Wed Nov 14 05:27:37 PST 2012


Matthias and Nathan is a true.
In fact there is not so much choices simplejson now is the same json for 
python 2.5 and 2.6 so it's now by default in python.


On 2012.11.14. 15:19, Matthias Kuhn wrote:
> Why not use the default python library? It will probably give the least
> dependency problems.
>
> http://docs.python.org/2/library/json.html
>
> On Wed, 2012-11-14 at 14:02 +0100, Andreas Neumann wrote:
>> Hi all,
>>
>> I would like to write small utility to manipulate metadata in a JSON
>> file (for QGIS Webclient), like this one:
>> http://webgis.uster.ch/qgis-web-client-dev/js/GISProjectListing.js
>>
>> The tool should import the JSON file, change some values and write it back.
>>
>> The idea would be to update, e.g. the time the data was last updated or
>> other values.
>>
>> My questions:
>>
>> * what library should I use? SimpleJSON? Others?
>>
>> * Does someone have sample code around that does something similar?
>>
>> Thanks,
>> Andreas
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Pēteris Brūns



More information about the Qgis-developer mailing list