JUCE
JUCE copied to clipboard
JSON: catch trailing commas
The if statements will only trigger if } or ] directly follow a ,. JSON disallows trailing commas, so this should throw a syntax error.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas
Thank you for submitting a pull request.
Please make sure you have read and followed our contribution guidelines (.github/contributing.md in this repository). Your pull request will not be accepted if you have not followed the instructions.