MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / grouped_into_basic_json_records

Function grouped_into_basic_json_records

examples/src/csv_examples.cpp:643–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643void grouped_into_basic_json_records()
644{
645 auto options = csv::csv_options{}
646 .assume_header(true);
647
648 csv::csv_string_cursor cursor(data, options);
649
650 auto iter = jsoncons::staj_array_iterator<jsoncons::ojson>(cursor);
651 auto last = end(iter);
652
653 auto print_options = jsoncons::json_options{}
654 .float_format(jsoncons::float_chars_format::fixed);
655
656 while (iter != last)
657 {
658 std::cout << pretty_print(*iter, print_options) << "\n";
659 ++iter;
660 }
661}
662
663void grouped_into_strongly_typed_records()
664{

Callers 1

mainFunction · 0.85

Calls 4

endFunction · 0.85
pretty_printFunction · 0.85
assume_headerMethod · 0.80
float_formatMethod · 0.45

Tested by

no test coverage detected