When connecting to data sources that returned data structured as documents (typically JSON or BSON), there are several ways to view the data. Instead of the regular grid, you get a panel that contains three different views, where you can choose the one that serves your purpose best.
TODO: Extend/replace screenshots
We should first settle on what sample data to use - current screenshots are placeholders.
The nested view organizes the data in expandable column header groups based on the data structure. You can expand/collapse headers to focus on the data you are interested in.
Selecting a cell in the grid will show the details as a key-value tree representation in the right-hand panel. You have a few more options in addition to the features of the main tree view (described below):
Choose if you want to see the entire row, all columns belonging to the same root column group, or all columns belonging to the closest singular column group. If you choose the closest group, the actual group varies with the structure; the root of the tree will be the closest column group that is not part of an array.
- Auto Expand
You can choose to automatically expand the tree to show the level of the cell you selected.
- Auto Filter
If you choose to filter on the selected cell, the tree will only show the cell you selected. If the cell is part of an array, you will see all occurrences of the cell.
Showing complex structures in the nested view may be slow since it places a heavy load on the algorithm for calculating row and column sizes.
You may have to confirm the action before opening this view on some data.
The tree view presents the data in a vertical fashion where each row represents an element. You can expand/collapse the rows and filter on the tree and choose how to present collapsed rows (blank, the size of contained elements, or the JSON string).
By selecting a cell in the tree, you can see the full details in the text panel to the right. A leaf cell is presented as plain text and you can choose to word-wrap the text to make it readable. A container cell (a JSON structure) is automatically formatted based on the JSON syntax. You can also view the hexadecimal representation of the data.
The text view shows the raw data as returned by the database, one row for each document. You can choose to format the data based on JSON syntax.
Formatting/unformatting a large data set may be very slow.