This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The following two malformed JSON literals are not detected as bad JSON: 1. { "valueName": "The Value!", "valName2": "\'The quoted Value\'" } The single quotes must not be escaped! Netbeans does not detect this. 2. { "valueName": "The Value!", } The trailing comma is not detected by netbeans either. Both values produce errors e.g., when loaded into a webpage with ajax. Both examples when run through linters like www.jslint.com or jsonlint.com produce errors.
Created attachment 132160 [details] Malformed example of escaped single quotes
Created attachment 132161 [details] Malformed example of trailing comma
String fixed in web-main 73cb553323fc. Trailing comma is duplicate of #228224.