[Qgis-developer] JSON parsing

Nyall Dawson nyall.dawson at gmail.com
Fri Aug 19 02:11:42 PDT 2016


On 19 Aug 2016 6:57 PM, "Patrick Valsecchi" <
patrick.valsecchi at camptocamp.com> wrote:
>
> Hello,
>
> For my editor widget stuff, I need to parse JSON (to get the stored the
widget config from the DB).

Just wondering - why not XML in the database? It's how styles are stored,
so it'd be nice to keep consistency.

Nyall


I've seen that the arcgirest provider uses qjson for that, so I've tried to
use it. Works fine on my machine, but fails to compile on Travis (missing
include file for qjson/parser.h). Now, I've seen that the arcgisrest
provider is not compiled in Travis. That explains why it is green without
my patch.
>
> Now, can I add qjson-dev as dependency to the Travis build in master?
>
> For QT5, there is a JSON parser included, so I could #ifdef the hell out
of it and use the Qt parser if in Qt5.
>
> What do you guys think?
>
> Thanks.
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160819/4569a655/attachment.html>


More information about the Qgis-developer mailing list