Skip to content

Commit a99387e

Browse files
committed
Add the description for json-pretty-print GH-11
1 parent 61db0a6 commit a99387e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,38 @@ json-reformat:indent-width (integer)
4242
Change indentation level (default 4)
4343
```
4444

45+
## IMPORTANT
46+
47+
From emacs 24.4, `json-pretty-print` and `json-pretty-print-buffer` was bundled.
48+
49+
Example:
50+
51+
```json
52+
{"name":"foobar","nick":"foo \u00e4 bar","description":"<pre>\nbaz\n</pre>"}
53+
```
54+
55+
Result of `json-pretty-print`:
56+
57+
```json
58+
{
59+
"description": "<pre>\nbaz\n<\/pre>",
60+
"nick": "foo \u00e4 bar",
61+
"name": "foobar"
62+
}
63+
```
64+
65+
Result of `json-reformat-region`:
66+
67+
```json
68+
{
69+
"description": "<pre>
70+
baz
71+
</pre>",
72+
"nick": "foo ä bar",
73+
"name": "foobar"
74+
}
75+
```
76+
4577
## LICENSE
4678

4779
MIT License. see `json-reformat.el`

0 commit comments

Comments
 (0)