def from_json(document):
return model_from_dict(json.loads(document))<EOL>
Load a cobra model from a JSON document.

Parameters
----------
document : str
    The JSON document representation of a cobra model.

Returns
-------
cobra.Model
    The cobra model as represented in the JSON document.

See Also
--------
load_json_model : Load directly from a file.