]> git.eshelyaron.com Git - emacs.git/commit
Accept alists when serializing JSON
authorPhilipp Stephani <phst@google.com>
Wed, 13 Dec 2017 21:41:28 +0000 (22:41 +0100)
committerPhilipp Stephani <phst@google.com>
Sun, 24 Dec 2017 12:59:25 +0000 (13:59 +0100)
commitf552a957ada23a7ff182fc1ab94221ced3ed1713
tree359c39cfc24e3c166984717f73884f6c221d1378
parent3455192777459a08a38b0adb311a76202e29f48d
Accept alists when serializing JSON

* src/json.c (lisp_to_json_toplevel_1): Also accept alists
representing objects.

* src/json.c (Fjson_serialize): Update docstring.

* test/src/json-tests.el (json-serialize/object): Add unit tests for
serializing alists.

* doc/lispref/text.texi (Parsing JSON): Document that serialization
functions accept alists.
doc/lispref/text.texi
src/json.c
test/src/json-tests.el