1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00
emacs/doc
João Távora 9348039ed4 Support custom null and false objects when parsing JSON
* doc/lispref/text.texi (Parsing JSON): Describe new :null-object
and :false-object kwargs to json-parse-string and
json-parse-buffer.

* src/json.c
(struct json_configuration): New type.
(json_to_lisp): Accept a struct json_configuration* param.
(json_parse_args): Rename from json_parse_object_type.
(Fjson_parse_string): Rework docstring.
(Fjson_parse_string, Fjson_parse_buffer): Update call to
json_to_lisp.
(syms_of_json): Two new syms, QCnull_object and QCfalse_object.

* test/src/json-tests.el
(json-parse-with-custom-null-and-false-objects): New test.
2018-06-15 00:11:56 +01:00
..
emacs Fix initialization of custom-delayed-init-variables 2018-06-12 18:03:56 +03:00
lispintro Merge from origin/emacs-26 2018-06-02 10:29:37 -07:00
lispref Support custom null and false objects when parsing JSON 2018-06-15 00:11:56 +01:00
man Merge from origin/emacs-26 2018-05-15 09:09:48 -07:00
misc Merge from emacs-26 2018-06-10 18:43:49 -04:00