Guides / CDISC Dataset-JSON explained
CDISC Dataset-JSON explained
Dataset-JSON is CDISC's format for sending a dataset as JSON text. It lifts the old .xpt limits on names, labels and text length.
What Dataset-JSON is
A Dataset-JSON file holds one dataset: a short block describing the columns (name, label, type, length), then the rows. It's plain text, so any modern tool can read it, and it isn't tied to SAS.
Dataset-JSON compared with .xpt
| SAS transport v5 (.xpt) | Dataset-JSON | |
|---|---|---|
| Names | 8 characters | No such short limit |
| Text values | 200 characters | Longer text allowed |
| Characters | ASCII is safest | UTF-8 |
| Numbers | IBM floating point | Written as text, decimals kept exactly |
| File size | Compact, fixed-length rows | Larger, as it's text |
JSON or NDJSON
A .json file is one JSON document. An .ndjson file puts the column details on the first line and one row on each line after it, which is easier to write and read in pieces.
Dataset-JSON 1.0 and 1.1
Version 1.1 simplified the layout: the columns and rows sit at the top level. Version 1.0 nested them inside clinicalData or referenceData. Our checker reads both.
Can you submit Dataset-JSON?
Check the FDA Data Standards Catalog and your agency's latest notices before you send Dataset-JSON in a submission. Meanwhile you can check Dataset-JSON files with the same rules as .xpt in our checker.
Questions about Dataset-JSON
Can I open a Dataset-JSON file in the browser?
Yes. Our checker reads .json and .ndjson Dataset-JSON files on your computer, shows the rows, and runs the same checks as for .xpt.
Does Dataset-JSON replace define.xml?
No. Dataset-JSON holds the data; define.xml still describes the study's datasets, codelists and methods.
What happens if I have the same dataset as .xpt and .json?
Our checker uses one copy (the .xpt first) and tells you which one it skipped.
This guide is general information to help you understand the standards. It isn't official FDA or CDISC guidance; read the published documents for your submission.