dimod.variables.Variables.to_serializable

Variables.to_serializable()[source]

Return an object that is json-serializable.

Returns

A list of json-serializable objects. Handles some common cases like NumPy scalars. See iter_serialize_variables().

Return type

list