From 7d1a559ae2f1bc6de1ec32b94a94f46de6a68d11 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 8 Oct 2020 10:53:12 +0100 Subject: [PATCH] GeoJSON - allow 'null' properties in `Feature` objects [#4177] --- include/mapnik/json/feature_grammar_x3_def.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/json/feature_grammar_x3_def.hpp b/include/mapnik/json/feature_grammar_x3_def.hpp index 6e031eddf..b3e78e627 100644 --- a/include/mapnik/json/feature_grammar_x3_def.hpp +++ b/include/mapnik/json/feature_grammar_x3_def.hpp @@ -272,7 +272,7 @@ auto const feature_part_def = feature_type | (lit("\"geometry\"") > lit(':') > geometry_rule[assign_geometry]) | - (lit("\"properties\"") > lit(':') > lit('{') > -properties > lit('}')) + (lit("\"properties\"") > lit(':') > ((lit('{') > -properties > lit('}')) | lit("null"))) | (omit[geojson_string] > lit(':') > omit[value]) ;