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.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b11b1c0f0eb5d6f470eed0314e3df15ced0638d53dc0dcb49c44a893eac1f688 |
|
MD5 | 13eac4bcd409dd2af4a945fc9ba38914 |
|
BLAKE2b-256 | 103092de5fddb6af935130637117dd0780aa0c6cdf3f3610adc66432a9d48d44 |