Lines Matching refs:_jw
18 static json_writer_t *_jw; variable
20 #define _IS_JSON_CONTEXT(type) ((type & PRINT_JSON || type & PRINT_ANY) && _jw)
21 #define _IS_FP_CONTEXT(type) (!_jw && (type & PRINT_FP || type & PRINT_ANY))
26 _jw = jsonw_new(stdout); in new_json_obj()
27 if (!_jw) { in new_json_obj()
31 jsonw_pretty(_jw, true); in new_json_obj()
32 jsonw_start_array(_jw); in new_json_obj()
38 if (_jw) { in delete_json_obj()
39 jsonw_end_array(_jw); in delete_json_obj()
40 jsonw_destroy(&_jw); in delete_json_obj()
46 return _jw != NULL; in is_json_context()
51 return _jw; in get_json_writer()
58 jsonw_name(_jw, str); in open_json_object()
59 jsonw_start_object(_jw); in open_json_object()
66 jsonw_end_object(_jw); in close_json_object()
78 jsonw_name(_jw, str); in open_json_array()
79 jsonw_start_array(_jw); in open_json_array()
91 jsonw_pretty(_jw, false); in close_json_array()
92 jsonw_end_array(_jw); in close_json_array()
93 jsonw_pretty(_jw, true); in close_json_array()
112 jsonw_##type_name(_jw, value); \
114 jsonw_##type_name##_field(_jw, key, value); \
133 jsonw_name(_jw, key); in print_color_string()
135 jsonw_string(_jw, value); in print_color_string()
137 jsonw_string_field(_jw, key, value); in print_color_string()
156 jsonw_bool_field(_jw, key, value); in print_color_bool()
158 jsonw_bool(_jw, value); in print_color_bool()
194 jsonw_string_field(_jw, key, b1); in print_color_hex()
196 jsonw_string(_jw, b1); in print_color_hex()
214 jsonw_null_field(_jw, key); in print_color_null()
216 jsonw_null(_jw); in print_color_null()