You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
vaidik commentedon Jun 30, 2015
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.
salty-horse commentedon Nov 1, 2015
You probably need a real "JSON with comments" parser, not a regex.
vaidik commentedon Jul 7, 2019
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.