diff options
author | Philipp Stephani <phst@google.com> | 2017-12-19 00:03:05 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2017-12-19 00:11:40 +0100 |
commit | 87bd1d914e856346c7d22bd080155362ce5ac02f (patch) | |
tree | e36935e6872278cb0d5a84eb63ed32c1bc69fe63 /src/json.c | |
parent | 994ce51b28384bb2ea7a88248a105fcdc7c53a7b (diff) | |
download | emacs-87bd1d914e856346c7d22bd080155362ce5ac02f.tar.gz |
; Add comments about potential future Jansson flags
* src/json.c (Fjson_serialize, Fjson_insert): Add comments about
flags that we might potentially add in the future.
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c index 72ca93f621b..5849705952d 100644 --- a/src/json.c +++ b/src/json.c @@ -415,6 +415,8 @@ each object. */) json_t *json = lisp_to_json_toplevel (object); record_unwind_protect_ptr (json_release_object, json); + /* If desired, we might want to add the following flags: + JSON_DECODE_ANY, JSON_ALLOW_NUL. */ char *string = json_dumps (json, JSON_COMPACT); if (string == NULL) json_out_of_memory (); @@ -494,6 +496,8 @@ OBJECT. */) record_unwind_protect_ptr (json_release_object, json); struct json_insert_data data; + /* If desired, we might want to add the following flags: + JSON_DECODE_ANY, JSON_ALLOW_NUL. */ int status = json_dump_callback (json, json_insert_callback, &data, JSON_COMPACT); if (status == -1) |