in reply to Re: Extract JSON data
in thread Extract JSON data

I don't know whether the commas are a problem or not, but the missing curly braces and missing quotes are problematic. Once you fix the data, the JSON package makes parsing trivial:

The trailing commas are out of spec, but if you use the $json->relaxed([$enable]) then they will parse with no problems. relaxed also allows # comments in your JSON. Nice for config files.

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!