When you right-click a component in JSON Grid View, a context menu (screenshot below) appears that provides commands for modifying the display and editing the document. The context menu can also be accessed by pressing the Menu key. The commands of the context menu are described below.
Hovering over the Type command causes a sub-menu to be displayed in which you can select the type of the component. You can also access the Type sub-menu via the shortcut Ctrl+Menu key.
The Insert and Append commands add an item at the same level. The new item is added, respectively, before the selected item (Insert) and as the last sibling of the selected item (Append). The Add Child command appends a new item as a child. If one or more child items already exist, then the type of the new item will be the same as that of the last child. If no child exists, then the new item will be an empty key:value pair. For example, if the selected item is an array, with object children, then the new child item will be appended as the last child object.
The selected part of the table can be wrapped in either an array or an object.
This command is enabled if the selected component or any of its descendants is collapsed. It expands the component and all descendant components.
This command collapses all components except the selected component and its ancestor components.
Switches between Table Display and List Display.
These commands can be used to sort the components of a table according to the contents of the selected table column. Sorting can also be applied to a selection of table rows if the rows are contiguous.
These commands can be used on both components and content. If a copied component is pasted, then it will be inserted at the current selection.
Imports an image file into the document as a Base64-encoded string, and displays this string as an image in JSON Grid View. Image file formats that are supported for import are: PNG, JPEG, BMP, GIF, TIFF.
Exports a Base64-encoded string to an image file. You must ensure that the image file name you give has a file extension to match the image type specified in the Base64 encoding. If the string being exported is not Base64-encoded, then a file with the file name you specify will be created but will not have any content.
Removes all comments from the document. Since formulas are stored as comments, if a formula is present in the document, then you will be asked whether you want to remove formulas as well..
Re-evaluates all the XQuery formulas in the document.
Open the JSON Grid View Options dialog, in which you can specify the default behavior of JSON Grid View features.