--- type: "doc" source: "source/nd-json.html" --- \[%settitle NDJSON Format%\] \[%file newheader%\] \[%file newnavbar%\] <%fmtheader ndjson%> ## NDJSON Representation of Resources | Responsible Owner: [\[%wgt its%\]]([%wg its%]) Work Group | [Standards Status](versions#std-process):[Normative](versions#std-process) | | --- | --- | NDJSON ([New line delimited JSON](https://github.com/ndjson/ndjson-spec)) is a variant of the NDJSON format that is supported for bulk data transfer. In principle, NDJSON is a simple variation on [the JSON format](json), but where resources are serialized with no whitespace, and separated by a newline pair (characters 13 and 10). Example: { "resourceType" : "\[type\]", .... } { "resourceType" : "\[type\]", .... } The MIME-type for this format is `application/fhir+ndjson`. In order to simplify NDJSON processing, each NDJSON document SHALL only contain resources of a single type - every line contains a resource of a particular type. (though note that resources may still contain [contained resources](domainresource-definitions#DomainResource.contained) of various types). On the [RESTful API](http), the NDJSON format can only be retrieved using the [Asynchronous Pattern](async). \[%file newfooter%\]