Json data format

The „.json“-fileformat is a human readable object oriented format. In the context of analysing motion data it is mainly usful for import/export. The fileformat is not very compact, so you can expect very big files and it is time consuming to work with them.

MimeType: text/x-json

Default File Suffix: .json


Reading of json-files is not yet implemented.

Output of processed motion data

In the „job configuration“ the processing output file format is defined by a labelset file:

<CalcGroup name="...">
     <output labelset="output.xml"/>

The output format itself is defined in the labelset file:

<LabelSet name=...>
     <Labels name="Test" mimeType="text/x-json" fileSuffix="json" basefile="true">

The conent of a Json output file looks like the following:

  "trial": {
     "frames": [{},{},...],
     "phases": [{"name": "RStride", "start": 100, "end": 200},...],
     "events": [{"name": "RHS", "pos": 100},...]


  • Phases- or events-objects are saved only, if phases or events are available.
  • At the time, not all informations saved in a trial are exported into Json-files. Missing parts can be added easy if needed.
  • NaN double values are written - against the Json standard - as „NaN“.

Output of exported motion data

The Output of motion data exported into the json-format is different to the data saved after processed data:

Each line is a valid JSON entry without separator at the end. This is similar to other readers and follows Hadoop convention. Hadoop and Spark use this format to make sure, splits work properly in a cluster environment. For those new to Hadoop file format convention, the reason is a large file can be split into chunks and sent to different nodes in a cluster. If a record spanned multiple lines, split might not get the complete record, which will result in runtime errors and calculation errors. Where and how a job splits a file varies depending on the job configuration and cluster size.



If in the Export UI the „labelset name“ and the „labelgroup name“ is defined, than the „labelgroup name“ is interpreted as a phase type name and only the frames of the given phase are exported.

fileformats/json.txt · Zuletzt geändert: 2018/01/09 10:45 von oliver