mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-23 00:05:43 -04:00
There was a lack of a JSon array around rings of a polygon. This issue is not present in 3.4 Also fixes an issue with gcc 5.5 of Ubuntu 16.04 that doesn't behave properly with C++11 brace syntax with code from nlohmann/json.hpp. The code compiles but the result is invalid: `json foo{ json::array{} }` is serialized as [[]] instead of []. So use old-style constructor instead: `json foo( json::array() )` This PR is on top of https://github.com/qgis/QGIS/pull/30010