I need to convert GeoJSON output from the server to a Javascript array; I did some searches, and they were for "regular" JSON outputs, not GeoJSON. Here is the output from the server:
{"type":"FeatureCollection","features":[{"type":"Feature","property":"blah"}, {"type":"Feature","property":"blah2"}]}
And here is what I need (note: no quote from the "features" variable is required):
features = [{"type":"Feature","property":"blah"}, {"type":"Feature","property":"blah2"}]}
I think I need to find the "features" property and then scroll through its objects? Thank!
source
share