visual3d:documentation:visual_3d_formating:json_formats
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| visual3d:documentation:visual_3d_formating:json_formats [2024/06/19 14:04] – created sgranger | visual3d:documentation:visual_3d_formating:json_formats [2026/03/26 15:20] (current) – Cleaned up page. wikisysop | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Saving data in JSON (Javascript Object Notation) format is useful for web-based graphing and presentations. JSON is a human-readable format and is typically used to pass data from a web server to a javascript program in a web browser.\\ | + | ====== |
| + | The JSON (Javascript Object Notation) format is an incredibly flexible file format that is useful for web-based graphing and presentations. JSON is a human-readable format and is typically used to pass data from a web server to a javascript program in a web browser. Although the JSON format is not specific to motion capture or biomechanics, | ||
| - | The JSON output file from Visual3D can then be parsed and used by a javascript, ES6, or PHP program for use on the web. | + | ===== Reading |
| - | \\ | + | The only JSON file format currently supported to be read in by Visual3D |
| - | //This option is only available | + | |
| - | There is an example javascript parsing program available | + | |
| - | \\ | + | ==== Important Notes ==== |
| + | Some motion capture vendors, such as [[https:// | ||
| - | ====== Report Graph Export ====== | + | ===== Writing JSON Files ===== |
| - | **The first option is used to export | + | Visual3D can produce a JSON output file that can then be parsed and used by a javascript, ES6, or PHP program for use on the web. This option is only available in Visual3D |
| - | \\ | + | The format of the export is different depending on where in Visual3D you generate the export. |
| - | {{exportreport.png}} | + | |
| - | If the mean and standard deviation were displayed in the graph, they will be in the exported data too. The JSON format for mean and std dev are similar to the normal ASCII output in that the 2 X-components are listed first, and then the 2 Y components. The graphed data is listed in X and Y sections together. | + | ==== Example 1: Report Graph Export ==== |
| - | The JSON output is a single array for the graph, with sub-arrays for signal information | + | This example demonstrates how to export data from a report |
| - | \\ | + | 1. Select the report you want to export and select the JSON output option from the pop-up dialog. |
| + | {{: | ||
| + | |||
| + | 2. If the mean and standard deviation were displayed in the graph, they will be in the exported data too. The JSON format for mean and std dev are similar to the normal ASCII output in that the 2 X-components are listed first, and then the 2 Y components. The graphed data is listed in X and Y sections together. | ||
| + | |||
| + | The JSON output is a single array for the graph, with sub-arrays for signal information and for data. | ||
| + | < | ||
| {" | {" | ||
| {" | {" | ||
| Line 43: | Line 48: | ||
| } | } | ||
| ]} | ]} | ||
| - | ====== Export Data As ASCII Command ====== | + | </ |
| - | **The more general option** is to use the [[Visual3D:Documentation: | + | ==== Example 2: Export Data As ASCII Command ==== |
| - | The resulting JSON output format for that is: | + | The more general option |
| + | 1. Simply check the JSON format checkbox in the dialog or un-comment and change the parameter USE JSON FORMAT = TRUE from the textual interface. | ||
| + | |||
| + | The resulting JSON output format for this export is: | ||
| + | |||
| + | < | ||
| {" | {" | ||
| {" | {" | ||
| Line 61: | Line 71: | ||
| ]} | ]} | ||
| ]} | ]} | ||
| - | + | </ | |
visual3d/documentation/visual_3d_formating/json_formats.1718805874.txt.gz · Last modified: by sgranger
