I'm attempting to decode a JSON array, however I get the following error:
Object of class stdClass could not be converted to string
The JSON Encoded array is shown below:
echo json_decode('{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
149.23531999999997,
-35.352484
]
},
"properties": {
"Fcilty_typ": "MO",
"gx_id": "1"
}
}
]
}'
);
I've stripped some fields out of this to keep it more compact for this query. Could anyone suggest what the issue is here?
Thanks