langchain_core.load.dump
.dumpsΒΆ
- langchain_core.load.dump.dumps(obj: Any, *, pretty: bool = False, **kwargs: Any) str [source]ΒΆ
Return a json string representation of an object.
- Parameters
obj (Any) β The object to dump.
pretty (bool) β Whether to pretty print the json. If true, the json will be indented with 2 spaces (if no indent is provided as part of kwargs). Default is False.
kwargs (Any) β Additional arguments to pass to json.dumps
- Returns
A json string representation of the object.
- Raises
ValueError β If default is passed as a kwarg.
- Return type
str