Skip to main content

Function: problem2json

problem2json(problem): string

Translates a problem definition into a JSON format.

Parameters

NameTypeDescription
problemProblemDefinitionThe problem to be exported.

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.