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

Function encode_to_tab_delimited_file

examples/src/csv_examples.cpp:234–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void encode_to_tab_delimited_file()
235{
236 std::string in_file = "./input/employees.json";
237 std::ifstream is(in_file);
238
239 jsoncons::json employees;
240 is >> employees;
241
242 auto options = csv::csv_options{}
243 .field_delimiter('\t');
244 csv::csv_stream_encoder encoder(std::cout,options);
245
246 employees.dump(encoder);
247}
248
249void serialize_books_to_csv_file()
250{

Callers 1

mainFunction · 0.85

Calls 2

field_delimiterMethod · 0.80
dumpMethod · 0.45

Tested by

no test coverage detected