Skip to content
jc-rs
GitHub

Private CSV to JSON converter

CSV to JSON Converter and Viewer

A header-based CSV becomes one JSON object per data row. The first row supplies the property names, and every cell remains a string instead of having its type guessed from a few values.

csv--csvv1.0.0

Universalfile

Try the real parser

Paste input on the left. The same Rust parser that ships in the binary runs locally in this page and writes its JSON on the right.

browser · WebAssembly
Loading the local parser.
inputeditable
jc-rs --csvJSON
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "active": "true",
    "name": "Ada",
    "role": "admin"
  },
  {
    "active": "false",
    "name": "Lin",
    "role": "reader"
  }
]

Hover over a JSON value, or focus the JSON pane and use the Left and Right arrow keys, to trace it to the input. Parsing runs inside this tab in WebAssembly. Pasted text and opened files are not uploaded. If site analytics is enabled, it may receive page-level visit data such as the URL, title, and referrer; text in this editor is never included.

Accepted input

Non-empty UTF-8 delimited text with a header row. The delimiter is inferred from the first line by comparing pipe, tab, and comma characters, with pipe and tab winning ties as defined by the parser. A UTF-8 BOM is stripped, and quoted fields may contain delimiters or newlines.

What the JSON contains

  • The first record supplies property names; each later record becomes one object in a JSON array.
  • All cell values remain strings, including values that look like numbers, booleans, or dates.
  • Rows wider than the header receive fallback names such as col3; rows with fewer fields simply omit the missing keys.
  • Leading spaces before a field are normalized by the parser, while content inside a quoted field is preserved.

What you can do here

  • Convert CSV rows to JSON objects
  • Use the CSV viewer to inspect a file as structured JSON
  • Parse CSV without automatic type conversion

Use the same parser in a shell

$ cat data.csv | jc-rs --csv

The browser tool is for inspection. The CLI form is the useful one in scripts, pipes, containers, and repeatable checks.

Continue with the parsed JSON

Fixture coverage

11/11oracle-valid pairs match under the published structural JSON comparison

Magic syntax

not availableThis parser reads a file or a string rather than a command, so there is nothing for jc-rs to run. Pipe it in.

Source: crates/jc-rs-parsers/src/format/csv.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare