WORKFLOW
Generate JSON
Export Wolfram Language expressions as JSON, UBJSON or ExpressionJSON.
To a File...
Write an expression to a JSON file:
![](Files/GenerateJSON.en/1.png)
If the filename’s extension is not “.json”, specify the file’s type explicitly:
![](Files/GenerateJSON.en/2.png)
To a File as ExpressionJSON...
Write an expression to an ExpressionJSON file:
![](Files/GenerateJSON.en/5.png)
- ExpressionJSON provides lossless round-tripping of Wolfram Language expressions to and from JSON.
Notes
Use ExportString to export to a string rather than a file:
The output is a string: