diff options
author | João Távora <joaotavora@gmail.com> | 2018-06-07 17:41:19 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2018-06-15 00:11:56 +0100 |
commit | 9348039ed45c8e493e8bfef0220249d4d31ef6da (patch) | |
tree | e7f79a9013d4b80bfb6b980a216419662f982866 /lisp/emacs-lisp/checkdoc.el | |
parent | 8cb9beb32163fa3ce3b052ced646fd673814ddc6 (diff) | |
download | emacs-9348039ed45c8e493e8bfef0220249d4d31ef6da.tar.gz emacs-9348039ed45c8e493e8bfef0220249d4d31ef6da.tar.bz2 emacs-9348039ed45c8e493e8bfef0220249d4d31ef6da.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/checkdoc.el')
0 files changed, 0 insertions, 0 deletions