JSON View

JSON View displays documents within a MongoDB collection in JSON. Data can be edited with the JSON Editor, while queries can be created and documents can be added just as easily as in the other views.

Find – Ctrl + F (⌘+ F)
Find next – F3 (⌘+ G)
Find previous – Shift + F3 (Shift + ⌘+ G)
Edit Document (JSON) – Ctrl + J (⌘+ J)

Basics

JSON View is one of three ways to view data in Studio 3T, which shows data within a MongoDB collection as JSON documents.

It is always accessible in the top-right drop-down menu of the Result Tab.

For more information on MongoDB JSON and BSON, read the MongoDB documentation.

Edit JSON data

To edit a document (e.g. field name, value) while in JSON View:

Editing a document in JSON View.

Button

Click on the Edit button (paper + pencil icon) in the toolbar

Right-click

Right-click anywhere in the Result Tab and choose Document > View Document (JSON) and Edit Document (JSON)

Hotkey

View Document (JSON) – F3
Edit Document (JSON) –  Ctrl + J (⌘+ J)

This will open the Document JSON Editor.  

Validate JSON data

JSON View has a built-in validation mechanism which ensures edits are correct.

Editing data in JSON View.

To validate edits, click on the Validate button. It will flag any errors in the query.

Invalid data in JSON view

Enabling dark mode

Enable or disable it by going to ‘Edit’, ‘Preferences’ and simply checking or unchecking the box.

 

Updated on October 1, 2018

Was this article helpful?

Related Articles