diff options
| author | João Távora | 2018-06-07 17:41:19 +0100 |
|---|---|---|
| committer | João Távora | 2018-06-08 02:37:31 +0100 |
| commit | 00c534abb42d914b45d5e87d510c26b6174869c2 (patch) | |
| tree | 01be78d582d4ef4fb13ee6355cda7f899474004a /src/bytecode.c | |
| parent | 3509aaaefe1996ea46b038850629b6d2f7a726fe (diff) | |
| download | emacs-00c534abb42d914b45d5e87d510c26b6174869c2.tar.gz emacs-00c534abb42d914b45d5e87d510c26b6174869c2.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): Take 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 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions