Function: problem2json()
problem2json(
problem:ProblemDefinition):string
Translates a problem definition into a JSON format.
Parameters
| Parameter | Type | Description |
|---|---|---|
problem | ProblemDefinition | The problem to export. |
Returns
string
A string containing the problem in JSON format.
Remarks
The result can be stored in a file, for example. The problem can be converted back from JSON format into an instance of ProblemDefinition using function json2problem.