[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tomelr 732140041e 07/84: doc: Discover `json-encoding-p
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tomelr 732140041e 07/84: doc: Discover `json-encoding-pretty-print` variable! |
Date: |
Tue, 3 May 2022 09:58:07 -0400 (EDT) |
branch: externals/tomelr
commit 732140041e91528a7ee3c730ce10bac0931698c4
Author: Kaushal Modi <kaushal.modi@gmail.com>
Commit: Kaushal Modi <kaushal.modi@gmail.com>
doc: Discover `json-encoding-pretty-print` variable!
---
README.org | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/README.org b/README.org
index 6c0e0711e8..3db9373425 100644
--- a/README.org
+++ b/README.org
@@ -899,7 +899,7 @@ the name matches "scalar" completely or partially, run:
#+begin_src shell
make test MATCH=scalar
#+end_src
-* Helper function
+* COMMENT Helper function
** JSON Reference pretty print string
The ~json-encode-pretty~ function defined here is used to pretty-print
the above JSON examples.
@@ -908,10 +908,9 @@ the above JSON examples.
(defun json-encode-pretty (object)
"Return prettified JSONified version of OBJECT."
(with-temp-buffer
- (let ((json-false :false))
- (insert (json-encode object))
- (json-pretty-print-buffer)
- (buffer-substring-no-properties (point-min) (point-max)))))
+ (let ((json-false :false)
+ (json-encoding-pretty-print t))
+ (json-encode object))))
#+end_src
* Reference
[[https://toml.io/en/v1.0.0/][TOML v1.0.0 Spec]]
- [elpa] branch externals/tomelr created (now a1fa47379e), ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 732140041e 07/84: doc: Discover `json-encoding-pretty-print` variable!,
ELPA Syncer <=
- [elpa] externals/tomelr d96a3b235b 04/84: doc: Add LOGBOOK drawer example, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 05d2cafcd9 09/84: test: Add test for boolean scalar key-value pairs, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 2ea3b5e032 03/84: fix!: Set boolean false using :false value, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 28642f2e78 05/84: fix: dates will be strings in Lisp, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 52dc93201d 08/84: feat: First cut -- Port json-encode from json.el to tomelr-encode, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 7cd15e79b8 10/84: tool(ci): Add GHA setup, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr c872e9efc1 17/84: test: Add test for integer scalar key-value pairs, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr a1f434f03a 31/84: feat: Support nested TOML tables, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 6bbe740e52 28/84: test: Test that 'false is also considered as boolean false in TOML, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 9c91e0dc07 18/84: test: Add test for float scalar key-value pairs, ELPA Syncer, 2022/05/03