Skip to main content

Visualize and edit JSON

Project description

Installation

pip3 install jsoneditor

Usage

In python:

import requests
import jsoneditor

data = requests.get('your endpiont here').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

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.2.0.tar.gz (253.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: jsoneditor-1.2.0.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.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for jsoneditor-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5ca6726b399fe63299892b0e41ecbb6573c0f68e4e4003d24a1cd484316b9cd0
MD5 748e8e665c14fc12904e4f0f19e9a24b
BLAKE2b-256 86b6b9c6aa7a856e5ce1ec62a3700c6387cfb2e4cf4e06b5d00f2e487f0ad16b

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