]> git.eshelyaron.com Git - emacs.git/commit
Also allow custom false and null when serializing to JSON
authorJoão Távora <joaotavora@gmail.com>
Fri, 8 Jun 2018 01:35:50 +0000 (02:35 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 8 Jun 2018 01:37:51 +0000 (02:37 +0100)
commit3a8286696b4d7e843334da5d54edf2f8261451f8
treea1d386353ed599f27a8c8bf2290494cd478fe609
parent00c534abb42d914b45d5e87d510c26b6174869c2
Also allow custom false and null when serializing to JSON

* doc/lispref/text.texi (Parsing JSON): Describe new arguments of
json-serialize and json-insert.

* src/json.c (enum json_object_type, struct json_configuration):
Move up in file before first usage.
(lisp_to_json_toplevel, lisp_to_json_toplevel_1, lisp_to_json):
Take a json_configuration.
(Fjson_serialize, Fjson_insert): Take multiple args.
(json_parse_args): Take new boolean configure_object_type.

* test/src/json-tests.el
(json-parse-with-custom-null-and-false-objects): Add assertions fo
json-serialize.
doc/lispref/text.texi
src/json.c
test/src/json-tests.el