Editing JSON5 Documents
Oxygen XML Editor includes support for working with JSON5
documents (files that have the json5
file extension). The JSON5
format is a superset of JSON that aims to alleviate some of the limitations of JSON by
expanding its syntax to include some productions from ECMAScript 5.1.
Editing JSON5 Documents
You can edit JSON5 documents in the Text mode editor in Oxygen XML Editor and you have access to its usual text editing actions, along with other JSON5 editor-specific actions, including syntax highlighting, validation, formatting and indenting.
It also includes a document template to help you get started with JSON5 documents. The template is called JSON5 and it can be found in the New Document folder in the New document wizard.
Outline View
The Outline view for JSON5 documents displays the list of all the components of the document you are editing in a hierarchical (tree-like) representation. It is synchronized with the main editor so you can use the view to navigate to specific parts of the document and move or delete components. By default, it is displayed on the left side of the editor. If the view is not displayed, it can be opened by selecting it from the Window > Show View menu.
Validation
Oxygen XML Editor includes built-in validation engine for JSON5 documents to help keep them well-formed. JSON5 documents are validated automatically as you type and the validation engine detects syntax errors, based on the JSON5 specification. One limitation is that hexadecimal values are not supported.