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.
In reply to Re^2: Extract JSON data
by Random_Walk
in thread Extract JSON data
by omegaweaponZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |