JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

JSON: catch trailing commas

Open RolandSchuetzenhofer opened this issue 1 year ago • 0 comments

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.

RolandSchuetzenhofer avatar Sep 15 '24 23:09 RolandSchuetzenhofer