jsoncpp
jsoncpp copied to clipboard
Trailing comma before comment in array crashes
Describe the bug Default settings_ (non strict) allows for both trailing commas and comments. However, an exception is generated on the following JSON
"actions": [
{},
// ...
],
To Reproduce Steps to reproduce the behavior:
- Minimal reproducible sample attached
Expected behavior We expected this to be valid JSON as both the settings seem to allow for it.
Desktop (please complete the following information):
- OS: [e.g. iOS] Windows
Additional context Add any other context about the problem here.