Lines Matching full:wr
311 json_writer_t *wr = jsonw_new(stdout); in main() local
313 jsonw_start_object(wr); in main()
314 jsonw_pretty(wr, true); in main()
315 jsonw_name(wr, "Vyatta"); in main()
316 jsonw_start_object(wr); in main()
317 jsonw_string_field(wr, "url", "http://vyatta.com"); in main()
318 jsonw_uint_field(wr, "downloads", 2000000ul); in main()
319 jsonw_float_field(wr, "stock", 8.16); in main()
321 jsonw_name(wr, "ARGV"); in main()
322 jsonw_start_array(wr); in main()
324 jsonw_string(wr, *++argv); in main()
325 jsonw_end_array(wr); in main()
327 jsonw_name(wr, "empty"); in main()
328 jsonw_start_array(wr); in main()
329 jsonw_end_array(wr); in main()
331 jsonw_name(wr, "NIL"); in main()
332 jsonw_start_object(wr); in main()
333 jsonw_end_object(wr); in main()
335 jsonw_null_field(wr, "my_null"); in main()
337 jsonw_name(wr, "special chars"); in main()
338 jsonw_start_array(wr); in main()
339 jsonw_string_field(wr, "slash", "/"); in main()
340 jsonw_string_field(wr, "newline", "\n"); in main()
341 jsonw_string_field(wr, "tab", "\t"); in main()
342 jsonw_string_field(wr, "ff", "\f"); in main()
343 jsonw_string_field(wr, "quote", "\""); in main()
344 jsonw_string_field(wr, "tick", "\'"); in main()
345 jsonw_string_field(wr, "backslash", "\\"); in main()
346 jsonw_end_array(wr); in main()
348 jsonw_end_object(wr); in main()
350 jsonw_end_object(wr); in main()
351 jsonw_destroy(&wr); in main()