Skip to main content

Pretty print json contains python style coments, string literal.

Project description

# Pretty Format JSON

Pretty print json contains python style coments, string literal.

` pip3 install pretty-format-json `

Yaml and CSV write works fine in Python3 but not in Python2

## Binaries

  • pretty_format_json: parse NodeJS style, Python style text to JSON

  • yaml_json: Convert between Yaml and JSON

## Use it in VIM

Add noremap <a-j> :%!pretty_format_json<CR> (or your key binding) to your config file.

` noremap <a-j> :%!pretty_format_json<CR> noremap <a-k> :%!yaml_json<CR> noremap <a-c> :%!csv_json<CR> `

When you open a blank buffer, paste the text copied from somewhere into, then use Alt+j to convert to JSON, use Alt-k to convert to Yaml and back to JSON.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pretty_format_json-0.2.7-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

pretty_format_json-0.2.7-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pretty_format_json-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: pretty_format_json-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for pretty_format_json-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3cdc7c7eaea9da457ca10c9db383edbd124b56ed14d338cb1415c62d39505c1f
MD5 d0923b886fa5a23b699a00fa47c43926
BLAKE2b-256 5405e6d90282d2c277819ed258b2e044c07dd79eeb0104d9b4870b70dee35f5f

See more details on using hashes here.

File details

Details for the file pretty_format_json-0.2.7-py2.py3-none-any.whl.

File metadata

  • Download URL: pretty_format_json-0.2.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for pretty_format_json-0.2.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 009850b68794f03b0c5c0d8c736f678885a5ca869eaf31f46aaec9ed400f5bac
MD5 8c7af47bfbd5ae93c7b9a6b00fed1034
BLAKE2b-256 920e3d65c474aaf70b9fa267dbf1c8eff13c356bc69081bc30082255b9168146

See more details on using hashes here.

Supported by

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