Json Beautifier Convert JSON Strings to a Friendly Readable Format
Support Development
PayPal ● 
Bitcoin Address: bc1qh7juzrxrawpr65elm4qs285m5rdhnhgsn7h2jf
 ● 
Lightning Address: [email protected]
Your Input Matters
Review
Advertisement
Screenshot
The "JSON Beautifier" extension is a helpful tool that makes it easy to view, edit, format, validate, and export JSON pages. The extension does not require any setup to function. It seamlessly converts JSON pages whenever the page's mime type corresponds to a valid JSON format. Once a page is loaded, the JSON viewer checks the page is JSON compatible. If the parser successfully returns an object (or an array), the content is displayed in an editable user interface. Otherwise, the data is shown in its raw format.

Features

FAQs

  1. What is "JSON Beautifier" extension and how does it work?

    The extension sets up a monitoring system for top-frame page loading. A small code snippet is injected into the page if a frame contains a mime type associated with a JSON object. The page's content is parsed once the page finishes loading (indicating that the complete JSON object has been fetched). If the object parsing is successful, a JSON editor instance is loaded, and the entire object is provided to this instance. This enables you to effortlessly access and review all available keys and their corresponding values. Moreover, you can modify them or perform searches across the keys and values. Additionally, there is a convenient built-in tool for dragging and dropping objects to different locations in the JSON tree.

    This extension use tulios/json-viewer project for displaying JSON objects.

    The extension uses a non-persistent background page (starting from version 0.1.3), ensuring that the background script unloads itself when the extension is inactive. So, the extension does not affect the browser's performance when not in use.

  2. How does the extension identify JSON pages?

    One of the headers that the server returns when a web page loads is the "content-type" header. This header provides information to the browser about how to handle the request. The extension installs an observer specifically for tracking this header in the top-frame requests. A script is added to the page when a matching mime type is detected. The script then waits with a loading animation until all the necessary data is available. Once the data transfer is complete, the script attempts to parse and validate the contents. After successful validation, the data is sent to a JSON editor instance to display the resulting output.

  3. What are the available editing features in the editor?

    You can adjust the node types to either "Auto," "Array," "Object," or "String" formats. The "Auto" format allows the extension to determine the appropriate format automatically. Additionally, you can sort the children of a node in ascending or descending order. These editing operations can be accessed through the selector box located on the left side of each object (node). You can also change the position of nodes by using the drag-and-drop feature.

  4. What's new in this version?

    Please check the Logs section.

  5. Is there a way to expand or collapse all JSON keys in the editor at once?

    Certainly! You can find two action buttons on the top left side within the editor. These buttons enable you to expand or collapse all nodes at once. Once a JSON object is fully loaded, only the keys on the first level are expanded by default. Using these two buttons, you can expand the entire JSON object to the deepest level or collapse the entire node hierarchy to the top level.

  6. How can I test JSON Beautifier extension?

    Here is a list of sample JSON files. Open these files in your browser after the extension is installed to see the editor in action.

    And use these two large JSON objects to see how extension performs on large input data:

  7. Does this extension support beautifying local JSON files (file:///)?

    Not only can the extension beautify server files, but it can also beautify local JSON files (starting from version 0.1.3). Please make sure that the "allow access to file URLs" option is enabled for this extension on the "chrome://extensions" page. This step is necessary if you are on a Chromium-based browser such as Chrome, Edge, or Opera.

  8. Supported shortcut keys?

    List of supported shortcut keys for the "Tree" view:

    Alt+ArrowsMove the caret up/down/left/right between fields
    Ctrl+Shift+Arrow Up/DownSelect multiple fields
    Shift+Alt+ArrowsMove current field or selected fields up/down/left/right
    Ctrl+DDuplicate field
    Ctrl+DelRemove field
    Ctrl+EnterOpen link when on a field containing an url
    Ctrl+InsInsert a new field with type auto
    Ctrl+Shift+InsAppend a new field with type auto
    Ctrl+EExpand or collapse field
    Alt+EndMove the caret to the last field
    Ctrl+FFind
    F3, Ctrl+GFind next
    Shift+F3, Ctrl+Shift+GFind previous
    Alt+HomeMove the caret to the first field
    Ctrl+MShow actions menu
    Ctrl+ZUndo last action
    Ctrl+Shift+ZRedo

    List of supported shortcut keys for the "Code" view:

    Ctrl+\Format JSON data, set proper indentation
    Ctrl+Shift+\Compact JSON data, remove all whitespace

  9. Can I use this editor to open and modify embedded JSON objects on a page while benefiting from syntax highlighting?

    Certainly! You can achieve this by using your mouse to select the entire JSON string. Once the JSON is selected, right-click and choose the appropriate context menu item to open the selected JSON in a new editor instance, which will open in a browser tab. From there, you can easily modify and view the JSON in the syntax highlighting view provided by the editor.

  10. Can this extension be used to generate a new JSON object from scratch?

    Click the action button on the browser toolbar to open a new editor instance. The editor will contain a sample JSON structure. You can adjust the view mode according to your preference. Once you have finished editing the JSON, click the save button to export the results to your local disk. It's important to note that the JSON objects in this editor are not persistent, meaning they are not permanently stored or retained.

  11. Is it possible to extract a specific portion of a JSON object using this tool?

    When viewing a JSON object in the "Tree" view, the "Actions" menu offers three convenient options. Firstly, you can use the "Copy Object Path" item to copy the current path to the clipboard. Additionally, you can copy a particular segment of the entire object in the JSON formatted string. You can accomplish this by selecting "Copy Inner JSON" or "Copy Outer JSON" based on your specific needs.

  12. How does the extension handle displaying JSON files containing large numbers, considering that JavaScript does not natively support them?

    In versions before 0.3.7, the extension relied on the native JSON parser, which resulted in the truncation of large numbers. However, starting from version 0.3.7, the extension employs a different approach. It converts large numbers into read-only objects, represented in the format "{type: 'Big Number', value: '###n'}". The 'value' field is a string that ends with the character 'n', indicating it represents a large number (such as BigInt or BigFloat). This approach allows users to modify the value within these objects. Once the user exports the data, these objects are converted back into their respective large-number formats.

Matched Content

Preview

Reviews

Please keep reviews clean, avoid improper language, and do not post any personal information. Also, please consider sharing your valuable input on the official store.

What's new in this version

Version--
Published--/--/--
Change Logs:
    Last 10 commits on GitHub
    Hover over a node to see more details

    Need help?

    If you have questions about the extension, or ideas on how to improve it, please post them on the  support site. Don't forget to search through the bug reports first as most likely your question/bug report has already been reported or there is a workaround posted for it.

    Open IssuesIssuesForks

    Editorial Review

    JSON Beautifier is a browser extension to automatically view and edit JSON (JavaScript Object Notation) pages. It also allows to format and validate the JSON pages. JSON Beautifier is very easy to use and does not require any activation. This browser extension automatically converts JSON pages when a page matches to a valid JSON format.

    The extension installs an observer for top frame loads. When a frame has a mime type that may belong to a JSON object, a small code is injected into the page. When page loading is finished, the content will be parsed. On successful object parsing, an editor instance is created automatically and the entire object is fed to the editor instance. You can see all the available keys and their values and edit them or search through all the keys or values if you want. There is a built-in tool to drag and drop objects to different places as well. The extension has a beautiful easy to use the editor to give you complete access to change and modify JSON pages.

    JSON Beautifier also allows you to edit different types of nodes to Auto, Array, Object and String format. You can use Auto format to let the extension decide the format. You can also drag and drop nodes to change their place.

    Currently, the browser extension is available for Mozilla Firefox, Google Chrome, and Opera but the developers intend to make this available for other browsers as well. Working with JSON pages was never this easy and credit goes to JSON Beautifier for making it easy for everyone to enter the world of JavaScript Object Notation. This is a lite extension and does not consume a lot of memory. You can simply install it and if you are not satisfied, it can be removed also.

    Permissions are explained

    PermissionDescription
    storageTo save and get local preferences like version number
    tabsTo update JSON tab content once it is loaded
    <all_urls>To be able to act on both local and server-side pages

    Recent Blog Posts