[QGIS-Developer] JSON strings in global variables

Adam Borczyk adam.borczyk at gis-support.pl
Mon Apr 9 11:47:38 PDT 2018


Hello everyone,

I'm developing a plugin under QGIS 2 environment in which I use global
variables. I'd like to know if it's allowed to pass a JSON string into a
global variable?

My globals were fine until (I guess) I started to pass in jsons and now I
face an issue I described here: https://gis.stackexchange.com/
questions/277623/global-variables-in-qgis-mixed-on-some-computers -
basically the assignment of values to variables is sometimes wrong, some
even stay empty sometimes and it feels to be totally random.

If anyone knows if jsons could introduce any error in globals, I would be
grateful and it would narrow down my search. I don't know how are they
parsed, so maybe OS regional settings (commas and colons thing) also come
into play? Regards QGIS 2.18 and it's subversions (5, 9, 13, 18 etc.).

Best regards

*Adam Borczyk*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180409/ebf98878/attachment.html>


More information about the QGIS-Developer mailing list