86
GitHub - gongo/json-reformat: Reformat tool for JSON
source link: https://github.com/gongo/json-reformat
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
JSON Reformat
json-reformat.el
is reformat tool for JSON.
Important
From emacs 24.4 , json-pretty-print
and json-pretty-print-buffer
(similar specifications as json-reformat-region
) was bundled.
Requirements
- Emacs 23 or higher
Installation
You can install from MELPA with package.el
M-x package-install RET json-reformat
Usage
M-x json-reformat-region
Sample 1
Sample 2
Configuration
json-reformat:indent-width (integer) Change indentation level (default 4) json-reformat:pretty-string? (boolean) Specify whether to decode the string (default nil) Example: ;; {"name":"foo\"bar","nick":"foo \u00e4 bar","description":"<pre>\nbaz\n</pre>","home":"/home/foobar"} If nil: { "name": "foo\"bar", "nick": "foo \u00e4 bar", "description": "<pre>\nbaz\n<\/pre>", "home": "\/home\/foobar" } Else t: { "name": "foo\"bar", "nick": "foo ä bar", "description": "<pre> baz </pre>", "home": "/home/foobar" }
LICENSE
MIT License. see json-reformat.el
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK