The Container Viewer displays a container in a tree view which allows you to expand and view particular portions of a its contents.
The Container Viewer is opened by the Debug statement or the Display Container in Container Viewer statement.
Information on containers can be found in the Containers documentation.
Three columns are displayed. Data Type displays the type of data displayed on a row. Name / Index displays the name associated with an Object item or the index of an Array item. Value displays the value of an item or the number of items contained in an Array or Object item.
Additional functionality can be found on the context menu. If you are running macOS 10.13 or greater, you can create keyboard shortcuts for the menu items in Settings - Menu Shortcuts. The menu has the following items:
You can save the content to a file as JSON or a plist file via File>Save or File>Save As. When saving as JSON you can optionally compress the data. When saving as a plist file you can choose Property List (XML) or Property List (Binary). When saving as JSON, Date and Data items are converted to a description of their value/contents. When saving as a plist file, NULL items are converted to empty Strings. Note that standard JSON representation is used even if the data originated as JSON5.
You can use the search bar to locate matching case insensitive text in names and values. The disclosure button to the right of the search field displays a menu letting you specify where you want to search. The label to the left of the disclosure button will display all, names or values indicating where searches are taking place. The keyboard shortcuts on the Edit>Find menu associated with Find, Find Next and Find Previous can be used.