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 JSONcsv_json
: Convert between CSV and JSONyaml_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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pretty_format_json-0.2.22-py3-none-any.whl
.
File metadata
- Download URL: pretty_format_json-0.2.22-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 654931ba6d3ac70118e23247c1c9ca93b09d2bf7be2c78d4f63e20e2e55d2b87 |
|
MD5 | 1025de41fd2eb9014c1a8e225370ab2b |
|
BLAKE2b-256 | 7c6fdf0b4652d39d4ec36991ed1c5f47b9a3d0544cbd9d0cb258ee2a7b3c4f56 |