Skip to main content

Function: model2json

model2json(model): string

Translates the model into a JSON format.

Parameters

NameTypeDescription
modelModelThe model to be exported.

Returns

string

A string containing the model in JSON format.

Remarks

The result can be stored in a file, for example. Model can be converted back from JSON format into an instance of Model using function json2model.