Edit online

Editing JSON5 Documents

Oxygen XML Developer Eclipse plugin 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 Developer Eclipse plugin and you have access to its usual text editing actions, along with other JSON5 editor-specific actions, including syntax highlighting, validation, formatting and indenting.

Note: The Format and Indent action works for JSON5 documents with limitations being that quotes are removed for keys and values are always double quoted (regardless of the initial quotation).

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 from templates 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 Developer Eclipse plugin 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.