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?
> Qgis-developer mailing list
> [hidden email] > http://lists.osgeo.org/mailman/listinfo/qgis-developer
A Dataset is a table of tabular data. It may or may not have a
header row. They can be build and manipulated as raw Python datatypes
(Lists of tuples|dictionaries). Datasets can be imported from JSON,
YAML, and CSV; they can be exported to XLSX, XLS, ODS, JSON, YAML,
CSV, TSV, and HTML.
A Databook is a set of Datasets. The most common form of a
Databook is an Excel file with multiple spreadsheets. Databooks can be
imported from JSON and YAML; they can be exported to XLSX, XLS, ODS,
JSON, and YAML.
Thanks for your hint, but as Peteris said, I am not dealing with flat
data structure (tabular data), but with nested data structure (more like
typical xml files). I think I will try with the builtin json module as
most people suggested.