Lines Matching refs:top_item
603 json_dec_item_T *top_item; in json_decode_item() local
616 top_item = NULL; in json_decode_item()
619 top_item = ((json_dec_item_T *)stack.ga_data) + stack.ga_len - 1; in json_decode_item()
627 if (top_item->jd_type == JSON_OBJECT_KEY in json_decode_item()
628 || top_item->jd_type == JSON_ARRAY) in json_decode_item()
631 if (*p == (top_item->jd_type == JSON_ARRAY ? ']' : '}')) in json_decode_item()
641 cur_item = &top_item->jd_tv; in json_decode_item()
647 if (top_item != NULL && top_item->jd_type == JSON_OBJECT_KEY in json_decode_item()
664 top_item->jd_key = cur_item->vval.v_string; in json_decode_item()
673 if (top_item && top_item->jd_type == JSON_OBJECT_KEY) in json_decode_item()
692 top_item = ((json_dec_item_T *)stack.ga_data) in json_decode_item()
694 top_item->jd_type = JSON_ARRAY; in json_decode_item()
698 top_item->jd_tv = *cur_item; in json_decode_item()
704 if (top_item && top_item->jd_type == JSON_OBJECT_KEY) in json_decode_item()
723 top_item = ((json_dec_item_T *)stack.ga_data) in json_decode_item()
725 top_item->jd_type = JSON_OBJECT_KEY; in json_decode_item()
729 top_item->jd_tv = *cur_item; in json_decode_item()
730 cur_item = &top_item->jd_key_tv; in json_decode_item()
921 if (top_item != NULL && top_item->jd_type == JSON_OBJECT_KEY in json_decode_item()
933 top_item->jd_key = tv_get_string_buf_chk(cur_item, key_buf); in json_decode_item()
934 if (top_item->jd_key == NULL) in json_decode_item()
944 top_item = ((json_dec_item_T *)stack.ga_data) + stack.ga_len - 1; in json_decode_item()
945 switch (top_item->jd_type) in json_decode_item()
959 list_append(top_item->jd_tv.vval.v_list, li); in json_decode_item()
999 top_item->jd_type = JSON_OBJECT; in json_decode_item()
1006 && dict_find(top_item->jd_tv.vval.v_dict, in json_decode_item()
1007 top_item->jd_key, -1) != NULL) in json_decode_item()
1010 top_item->jd_key); in json_decode_item()
1018 dictitem_T *di = dictitem_alloc(top_item->jd_key); in json_decode_item()
1020 clear_tv(&top_item->jd_key_tv); in json_decode_item()
1029 if (dict_add(top_item->jd_tv.vval.v_dict, di) == FAIL) in json_decode_item()
1052 top_item->jd_type = JSON_OBJECT_KEY; in json_decode_item()
1054 cur_item = &top_item->jd_key_tv; in json_decode_item()