Checking Well-Formedness in JSON DocumentsEdit online
A Well-formed JSON document is a sequence of Unicode code points that strictly conforms to the JSON grammar defined by the JSON Data Interchange Syntax specification. By default, Oxygen XML Editor plugin automatically checks the document for Well-formedness as you type.
Check for Well-Formedness Manually
- Select the
Check
Well-Formedness
(Alt + Shift +
V, W (Command + Alt + V, W on OS X)) action from the
Validation drop-down
menu on the toolbar or from the XML
menu. - A selection of files can be checked for well-formedness by selecting the
Check Well-Formedness
action from the Validate submenu when invoking the contextual
menu in the Navigator
view.
Result: If any errors are found, the result is displayed in the message panel at the bottom of the editor. Each error is displayed as one record in the result list and is accompanied by an error message. Clicking the record will open the document containing the error and highlight its approximate location.
{"person": { "name": "John Doe" }Expected a ',' or '}'
To resolve the error, click the record in the result list and it will locate and highlight the approximate position of the error. In this case, you would need to identify where the missing end bracket needs to be placed.