1
0
forked from aniani/vim

patch 7.4.1166

Problem:    Can't encode a Funcref into JSON.  jsonencode() doesn't handle the
            same list or dict twice properly.  (Nikolay Pavlov)
Solution:   Give an error.  Reset copyID when the list or dict is finished.
This commit is contained in:
Bram Moolenaar
2016-01-24 16:49:11 +01:00
parent 938ee834d3
commit fcaaae6b3f
4 changed files with 34 additions and 8 deletions

View File

@@ -1,5 +1,4 @@
/* json.c */
char_u *json_encode(typval_T *val);
void json_encode_item(garray_T *gap, typval_T *val, int copyID);
void json_decode(js_read_T *reader, typval_T *res);
/* vim: set ft=c : */