Skip to main content

I have a json where part of the json is in geojson.

The "polygons" attribute is just pure geojson multipolygon.

I'd like to able to read all the json structure but leave the polygons structure as a string and convert that to spatial data.

I've tried jsonflattener and exploders + listconcatenator/featurereader with no luck.

I know I can do something with python, but would rather not.

I've attached a sample file if anyone would like to give it a try

Hi @peterkt,

One way would be to use a series of JSONFragmenters to break up and extract the attributes from each level while drilling down to the polygons level. A GeometryReplacer can be used to create the geometry from the GeoJSON.

readjson.fmw


Thank you @daveatsafe,

Thanks for your incredibly quick reply. Json often confuses me. It feels like it's own specialty.

Thanks again.


Reply