Write a KRT to canonical JSON
Arguments
- x
A krt_tbl.
- path
Output file path, or
NULLto return the JSON as a string.- pretty
Whether to pretty-print (default
TRUE).
Examples
json <- write_krt_json(krt_example)
substr(json, 1, 40)
#> [1] "{\n \"schema_version\": \"1.0.0\",\n \"profil"
