Power JSON Editor

The JSON editor for Mac developers.

A JSON editor for developers with a visual tree view and plugins such as Array Table Editor, jq Processor and format converters.

Power JSON Editor

Power JSON Editor lets you edit JSON in WYSIWYG mode, inspect the JSON hierarchy in a tree view, search with JSONPath and move nodes around with a few keystrokes.

It also ships with plugins for many JSON-related jobs, and its format converter plugins turn files into and out of JSON, Plist, YAML and TOML.

Highlights

What it does

Tree view with a clear hierarchy
01

Tree view with a clear hierarchy

  • View and edit JSON in a tree view
  • Change a node’s level with Cmd+[ and Cmd+]
  • Edit and add nodes directly in the tree
  • Drag and drop supported
Convenient node editor
02

Convenient node editor

  • Separate node editor panel
  • Comfortable editing of large text nodes
  • Switch boolean values with one click
Plugins
03

Plugins

  • Web Server: serve the open files as an HTTP API
  • Not Well-formed JSON Parser: parse JavaScript code into JSON
  • Scripts: process JSON with your own JavaScript
  • Array Table Editor, jq Processor, quicktype and format converters
Powerful search
04

Powerful search

  • Search with node paths and JSONPath
  • Matched nodes are highlighted
  • Search keys and values

More about Power JSON Editor

You can edit a JSON file in the raw text view or in the tree view. The two panels stay in sync: a change in one shows up in the other right away.

The text editor has syntax highlighting, formatting and a parse error indicator. Plugins add more: the Local Web Server plugin serves the files you are editing over HTTP so other apps can fetch them, which works like an API mock server, and the Scripts plugin runs any JavaScript file against your JSON.

More editor features:

  • Parse error messages that help you debug invalid JSON
  • One-click beautify and compact
  • Convert a node between string, number, boolean and null
  • Duplicate, cut, copy and paste nodes
  • Change a node’s parent with Command+] or Command+[
  • Wrap a node in an object or array
  • Drag and drop JSON between documents or other editors

Need a JSON editor on Windows? Try Quick JSON Editor.

JSONPath support

Power JSON Editor can filter nodes with JSONPath since version 1.3.0. Script expressions such as (@.length-1) are not supported.

Filter expressions

Filter expressions look like ?(price < 10).

Operator typeOperators
String comparison=, contains
Number comparison=, <, >, <=, >=
Collectionfield in {value1, value2}
Logicand, or

Examples

  • All books cheaper than 10: $..book[?(price<10)]
  • All books whose title contains “of”: $..book[?(title contains 'of')]
  • All books priced 8.95 or 8.99: $..book[?(price in {8.95, 8.99})]

Render template example

The JSON Template Render plugin renders your data with a Jade template:

- each item in data
    h2= item.title
    p= item.text

Scripts plugin example

Scripts plugin

/**
 A Sample Power JSON Editor Script Plugin
 */
PJEPlugIn = {
    // Name of this plugin, will show in submenu of Scripts plugin menu
    name: "Sample: Parse JSON with Comments",
    /**
     JSON processing function, will take two arguments
     @param json    JSON object from editor, maybe null for inform JSON
     @param jsonStr JSON text from editor
     @return Return value can be any valid JavaScript object, string will be treated as JSON text
     */
    func: function(json, jsonStr) {
        return eval('(' + jsonStr + ')');
    }
};

Changelog

Release history

All 34 releases

Older versions: full release notes for v1.0 to v2.0.

Get Power JSON Editor

A JSON editor for developers with a visual tree view and plugins such as Array Table Editor, jq Processor and format converters.

Related