summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2024-04-01 16:58:03 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2024-04-01 17:07:04 +0200
commitdbfe3cae2d9497fb14c83f26425f9421d1ef57cb (patch)
tree405f252cd6b0853f0134475b605d423bd93eb16b /etc
parentf53152faad170a93b7977c81f736cc787c2f9b71 (diff)
downloademacs-dbfe3cae2d9497fb14c83f26425f9421d1ef57cb.tar.gz
Update JSON parser test and docs
* test/src/json-tests.el (json-parse-string/object): Duplicated object keys are now retained in alist and plist output. * etc/NEWS: Mention it.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index e575fc2936e..4b0f148dc5d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1721,8 +1721,16 @@ Use a float value for the first argument instead.
Instead, use 'eshell-process-wait-time', which supports floating-point
values.
+** JSON
+
+---
+*** The parser keeps duplicated object keys in alist and plist output.
+A JSON object such as '{"a":1,"a":2}' will now be translated into the
+Lisp values '((a . 1) (a . 2))' or '(:a 1 :a 2)' if alist or plist
+object types are requested.
+
---
-** The JSON parser sometimes signals different types of errors.
+*** The parser sometimes signals different types of errors.
It will now signal 'json-utf8-decode-error' for inputs that are not
correctly UTF-8 encoded.