• João Távora's avatar
    Support custom null and false objects when parsing JSON · 9348039e
    João Távora authored
    * 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.
    9348039e
text.texi 213 KB