-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSon Array and Hash not working #4
Comments
Yes correct. As a matter of fact, the existing regex would fail for anything that is not properly formatted. I will try to churn out something that handles this situation. But that's not on priority. Until then, you can split the array into multiple lines and continue to use this - a little verbose but it works. |
You probably need a real "JSON with comments" parser, not a regex. |
Sorry for getting around to this so late. I was not maintaining commentjson in between. Got really busy with my day job. I am trying to maintain this now regularly. So expect faster responses. This is fixed. Now there is a proper parser which addresses all these cases. You can try the latest version of commentjson which addresses this and a lot of other unhandled cases like this. |
Hi,
If you put an Hash in a array Json that raise an exception.
Test 1 Work
{
"a": ["1","2"],
"b": 2 # b inline comment
}
Test 2 Don't Work
{
"a": ["1#","2"],
"b": 2 # b inline comment
}
The text was updated successfully, but these errors were encountered: