Editing Document Structure
You can edit the JSON document structure by adding new components, and deleting or moving the selected grid blocks. You can edit document structure in any of the following ways:
•Select a component and right-click to use the commands in its context menu (see screenshot below). The commands are described in the section Context Menu.
•Use the editing buttons that are available in cells. These buttons are described in the section In-cell Command Buttons below.
•Select a component and drag-and-drop it to a new location to modify the structure.
Shortcuts of commands for building a structure are listed in the table below.
Insert (Sibling) After
Insert (Sibling) Before
Wrap in Array
Wrap in Object
|Note:||If a component is added, say, as a property (inserted, appended, or added as child) and you wish to change its type to object or array, do this by clicking the component's type symbol and selecting the type you want.|
In-cell command buttons
In JSON Grid View, buttons in the cells of the grid provide functionality that is available in the context of the respective cell. Using these button commands is a faster and easier way to carry out commonly used operations. The available in-cell button commands are listed in the table below. Display-related commands are shown with a blue background. Commands for editing the document (structure and content) are shown with a beige background. For additional commands in a particular cell's context, use the cell's context menu. Note: The name of a cell button's command is displayed as a tool tip when you hover the button.
Optimizes widths of grid columns according to cell content.
When colored, Table Display is on, otherwise off. Click to switch the display
A toggle command in top left cell of table. Switches rows to columns and vice versa
When colored, a filter for the table, object, or array is active, otherwise the filter s deactivated. Click to deactivate/activate. To edit the expression, double-click it
Toggle command to word-wrap cells. When selected, word-wrap is on. By default. only the contents of items are wrapped. If you want to additionally wrap the names of items, choose this option from the icon's dropdown list.
In an array: Append an array item to the list or table
In an object: Append a key:value pair (as a row in a list, or (in table display) as a cell of a new table column)
Add an empty key:value pair; the type of the value is string by default
Select the datatype of a property value, or enter a comment or formula
|Note:||For a description other toolbar commands, see the section Context Menu in Grid View.|