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

Function encode_csv_file_from_books

examples/src/csv_examples.cpp:397–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void encode_csv_file_from_books()
398{
399 auto books = jsoncons::json::parse(R"(
400 [
401 {
402 "title" : "Kafka on the Shore",
403 "author" : "Haruki Murakami",
404 "price" : 25.17
405 },
406 {
407 "title" : "Women: A Novel",
408 "author" : "Charles Bukowski",
409 "price" : 12.00
410 },
411 {
412 "title" : "Cutter's Way",
413 "author" : "Ivan Passer"
414 }
415 ]
416 )");
417
418 csv::encode_csv(books, std::cout);
419}
420
421void decode_encode_csv_tasks()
422{

Callers 1

mainFunction · 0.85

Calls 2

parseFunction · 0.85
encode_csvFunction · 0.85

Tested by

no test coverage detected