Plugin details
Overview & Key Features
Repair invalid JSON documents.
This is a plugin designed to fix most of the most common errors in JSON documents that lead to undefined errors, such as:
SyntaxError: JSON.parse: unexpected symbol at line 2 column 18 of the JSON data.
The plugin works both on the client side and on the server side.
Features:
- The following issues can be fixed:
- Add missing quotes around keys
- Add missing escape characters
- Add missing commas
- Add missing closing brackets
- Repair truncated JSON
- Replace single quotes with double quotes
- Replace special quote characters like “...” with regular double quotes
- Replace special white space characters with regular spaces
- Replace Python constants None, True, and False with null, true, and false
- Strip trailing commas
- Strip comments like /* ... */ and // ...
- Strip fenced code blocks like ```json and ```
- Strip ellipsis in arrays and objects like [1, 2, 3, ...]
- Strip JSONP notation like callback({ ... })
- Strip escape characters from an escaped string like {\"stringified\": \"content\"}
- Strip MongoDB data types like NumberLong(2) and ISODate("2012-12-19T06:01:17.171Z")
- Concatenate strings like "long text" + "more text on next line"
- Turn newline delimited JSON into a valid JSON array, for example:
{ "id": 1, "name": "John" }
{ "id": 2, "name": "Sarah" }
Installation
Need help adjusting your new application?
Contact usSupport
And if you have any questions, reach out to us at support@mindforapps.com
