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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pretty_format_json-0.2.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd9e9b27f2d424f26c65dc6f4e41032ad6850772209a6bc42c2732d0c31038ad |
|
MD5 | 717224c0e56ea6d38aa9d716eba10982 |
|
BLAKE2b-256 | 89556c71e9c9aead4486dd70a5ec7648ce1d5586bf23a1d54bf8679b026b3971 |