comparison src/proto/json.pro @ 7736:f2ddad8cbce7 v7.4.1166

commit https://github.com/vim/vim/commit/fcaaae6b3fdbf3421a1ff95a25ae16d82381c39a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 24 16:49:11 2016 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Jan 2016 17:00:04 +0100
parents bce3b5ddb393
children 6b0891de44a9
comparison
equal deleted inserted replaced
7735:b0fb25b27d3f 7736:f2ddad8cbce7
1 /* json.c */ 1 /* json.c */
2 char_u *json_encode(typval_T *val); 2 char_u *json_encode(typval_T *val);
3 void json_encode_item(garray_T *gap, typval_T *val, int copyID);
4 void json_decode(js_read_T *reader, typval_T *res); 3 void json_decode(js_read_T *reader, typval_T *res);
5 /* vim: set ft=c : */ 4 /* vim: set ft=c : */