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