Please enable JavaScript to view this site.

Altova XMLSpy 2020 Professional Edition

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.

JSONGridViewContextMenu

Type

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.

 

Insert, Append, Add Child

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.

 

Wrap in Array, Wrap in Object

The selected part of the table can be wrapped in either an array or an object.

 

Expand Fully

This command is enabled if the selected component or any of its descendants is collapsed. It expands the component and all descendant components.

 

Collapse Unselected

This command collapses all components except the selected component and its ancestor components.

 

Display as Table

Switches between Table Display and List Display.

 

Ascending Sort, Descending Sort

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.

 

Cut, Copy, Paste, Delete

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.

 

Import from File

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.

 

Export to File

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.

 

Remove all comments

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-evaluate All

Re-evaluates all the XQuery formulas in the document.

 

Grid Settings

Open the JSON Grid View Options dialog, in which you can specify the default behavior of JSON Grid View features.

 

© 2020 Altova GmbH