Skip to main content

Visualize and edit JSON

Project description

Overview

jsoneditor will help you a lot if you are working with API's often.

When you first get data from a endpiont and you want to explore it - you can call the editjson function, and you will get a browser window with all the json you passed - right there.

See below:

Installation

pip3 install jsoneditor

Usage

In python:

import requests
import jsoneditor

data = requests.get('https://jsonplaceholder.typicode.com/comments').json()
jsoneditor.editjson(data)

From the terminal:

You got a cuple of options.

  1. python -m jsoneditor '{"Hey": "Hi"}'
  2. curl https://jsonplaceholder.typicode.com/comments | jsoneditor
  3. jsoneditor '{"Hey": "Hi"}'

Forms of passing the json

You can pass the json in any of the following forms:

  • as valid json string
  • as a python dict
  • as a url the points to valid json
  • as a file path that is valid json

Build

python3 setup.py sdist

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsoneditor-1.3.2.tar.gz (253.4 kB view details)

Uploaded Source

File details

Details for the file jsoneditor-1.3.2.tar.gz.

File metadata

  • Download URL: jsoneditor-1.3.2.tar.gz
  • Upload date:
  • Size: 253.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

File hashes

Hashes for jsoneditor-1.3.2.tar.gz
Algorithm Hash digest
SHA256 b7ba297e1d030b59de5f5623d86a576ee9e25881ea50a9c0e86e46a8c79a733a
MD5 5bc18f4b8eb16c84681ff001f9330707
BLAKE2b-256 e9ec953d7053521e732d26ec8d4ccf67db840b0c734479d696600408d73956ac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page