[Qgis-developer] Manipulating JSON files from Python

Nathan Woodrow madmanwoo at gmail.com
Wed Nov 14 05:10:21 PST 2012


Python has a builtin JSON module
http://docs.python.org/2/library/json.htmlwhich reads JSON into a
Python dict

- Nathan


On Thu, Nov 15, 2012 at 12:02 AM, Andreas Neumann <a.neumann at carto.net>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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20121115/b3a567ac/attachment.html>


More information about the Qgis-developer mailing list