Convert a document without inventing a new data model
Source format: CSV. Output format: JSON. Indentation: 2 spaces.
Choose the source and target format before interpreting output
Structured Data converts a supported document representation into another selected representation. Its choices include JSON, YAML, TOML, XML, CSV, TSV and a JSON string containing a JSON document. These formats do not share every type or structural feature, so conversion is not a promise that every source can be transformed into every target without loss. Select the source format and the intended output explicitly, then review the result and warning. The tool does not discover an application schema or guess how a nested document should become a business table.
The workbench also offers inspection actions for the source, including formatting, minification, validation and a tree where supported. Those actions answer a different question from conversion. Formatting a YAML document does not require choosing JSON as the target merely to inspect it, while converting to a table imposes the table’s flat-row constraints. Keep the selected action with the original source in a test record. A valid syntax message is not evidence that an application accepts the document’s fields, units or relationships.
Start with a small synthetic specimen that exposes the types you need to preserve. Leading-zero identifiers, booleans, nulls, arrays and nested objects are useful deliberate cases because a conversion can change their interpretation or reject the target. Keep an original copy outside the workspace. The source stays editable and is not automatically replaced by the output; explicitly using output as source is a separate decision. Local processing does not by itself describe every service associated with a public editor, so consult the existing privacy information before supplying sensitive content.
Follow text cells from CSV into JSON
Checked synthetic input
id,flag
007,falseRecorded processor observation
[
{
"id": "007",
"flag": "false"
}
]The checked CSV input has headers id and flag, followed by a row containing zero-zero-seven and the text false. Converting to JSON returns an array with one object. Both cell values remain strings: the identifier retains its leading zeros and the flag cell does not become a boolean merely because its spelling resembles one. The diagram shows those quoted values to make the type boundary visible. This is a flat-record mapping, not a guessed nested-object conversion or an interpretation of what a field named flag means in an application.
The CSV or TSV source must have unique nonempty headers and at least one data row. A header labels a cell’s property, but it does not supply a schema that tells the parser to infer numbers, booleans or dates. Preserve text such as an identifier when that is the actual source contract. If the receiving application needs typed values, define and test an explicit transformation there instead of assuming a general converter should guess them. A successful import here establishes the supported document representation, not a record’s business validity.
For the opposite direction, the default table-output mode accepts flat string-valued objects with the same keys. Explicit scalar-stringification mode additionally allows supported finite numbers and booleans by turning them into text. That loses their types, and importing the table later cannot recover the original types without additional rules. Nested objects, arrays and null cells are rejected instead of silently flattened or coerced. Compare a small round-trip fixture before using a target format for data whose meaning depends on those distinctions.
Read the format-specific boundaries rather than assuming universal losslessness
Inputs are bounded to one hundred thousand characters. JSON, YAML and TOML use limits of ten thousand data values and forty levels, while XML has separate node-and-attribute and element-depth bounds. Its explicit ordered JSON node tree adds wrapper structure, which can reach another format’s limits sooner. CSV and TSV have field and data-value bounds including rows. Output is bounded to one million characters. These are implementation limits and subset checks, not a guarantee of complete standards coverage or successful conversion for every document below a text-size threshold.
Duplicate keys, unsafe integers and unsupported types are rejected under the strict profile. YAML aliases and custom tags are outside the supported subset. TOML needs a table root and has no null value. Comments, original formatting and source annotations may be lost, and supported TOML date-time values become ISO text through the intermediate model. Treat those as material conversion properties rather than cosmetic differences. Preserving a readable value does not necessarily preserve the original source type or the way another application will interpret it.
XML conversion uses the documented ordered node-tree representation, not a guessed business object. A JSON string target wraps a normalized JSON document in a quoted string; it is not executable JavaScript. Table output can also contain formula-like text that spreadsheet software interprets specially. Ordinary CSV quoting is not a universal spreadsheet-safety mechanism. Import untrusted cells as text and apply the receiving application’s relevant policies. The converter does not authorize executing exported code or opening untrusted content with active features simply because the document was transformed successfully.
Use a small contract check before a larger handoff
For a data-exchange task, choose a fixture containing the exact source types that matter, then inspect both the target representation and any warning. Confirm whether a leading-zero identifier stays text, whether a boolean becomes a string and whether arrays retain order. Record the source and target labels with the actual delivered output. This makes a concrete compatibility discussion possible without using private records or implying that one readable conversion proves a complete production pipeline correct.
For a format-comparison exercise, use source inspection to separate syntax problems from target-model limitations. A duplicate header, a malformed document and a valid source containing a target-incompatible null are different failures. Preserve the original specimen and reduce it deliberately rather than editing until a different document happens to pass. The accessible educational diagram focuses on the checked text-cell mapping, while the full examples and scope notes identify boundaries that cannot be inferred from a file extension or a familiar-looking output alone.
Copy and Download transfer the current generated text. They do not submit it to an API, update a database or preserve all original comments and type annotations by default. Reset clears the current workspace, not an explicitly saved local draft, whose deletion has its own action. Verify actual pasted or saved content before reuse. The useful endpoint is a reviewed representation change with its type losses, target constraints and remaining consumer checks stated explicitly, rather than a general promise that conversion has made the data correct, safe or ready to publish.
Supporting reference: JSON data-model context; conversion subsets and losses are described above.