File: csv_mapping_kind.md

package info (click to toggle)
jsoncons 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,584 kB
  • sloc: cpp: 136,382; sh: 33; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
### jsoncons::csv::csv_mapping_kind

```cpp
#include <jsoncons_ext/csv/csv_options.hpp>

enum class csv_mapping_kind
{
    n_rows = 1, 
    n_objects, 
    m_columns
};
```

Value      |Definition
-----------|-----------
n_rows    | Map a CSV file to an array of arrays in a `basic_json`.
n_objects | Map a CSV file to an array of objects in a `basic_json`.
m_columns | Map a CSV file to an object with name/array-value pairs.