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
  • csv_json: Convert between CSV and 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 Distribution

pretty_format_json-0.2.22-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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