Lines Matching refs:wr
270 json_writer_t *wr = jsonw_new(stdout); in main() local
272 jsonw_pretty(wr, true); in main()
273 jsonw_name(wr, "Vyatta"); in main()
274 jsonw_start_object(wr); in main()
275 jsonw_string_field(wr, "url", "http://vyatta.com"); in main()
276 jsonw_uint_field(wr, "downloads", 2000000ul); in main()
277 jsonw_float_field(wr, "stock", 8.16); in main()
279 jsonw_name(wr, "ARGV"); in main()
280 jsonw_start_array(wr); in main()
282 jsonw_string(wr, *++argv); in main()
283 jsonw_end_array(wr); in main()
285 jsonw_name(wr, "empty"); in main()
286 jsonw_start_array(wr); in main()
287 jsonw_end_array(wr); in main()
289 jsonw_name(wr, "NIL"); in main()
290 jsonw_start_object(wr); in main()
291 jsonw_end_object(wr); in main()
293 jsonw_null_field(wr, "my_null"); in main()
295 jsonw_name(wr, "special chars"); in main()
296 jsonw_start_array(wr); in main()
297 jsonw_string_field(wr, "slash", "/"); in main()
298 jsonw_string_field(wr, "newline", "\n"); in main()
299 jsonw_string_field(wr, "tab", "\t"); in main()
300 jsonw_string_field(wr, "ff", "\f"); in main()
301 jsonw_string_field(wr, "quote", "\""); in main()
302 jsonw_string_field(wr, "tick", "\'"); in main()
303 jsonw_string_field(wr, "backslash", "\\"); in main()
304 jsonw_end_array(wr); in main()
306 jsonw_end_object(wr); in main()
308 jsonw_destroy(&wr); in main()