langchain.callbacks.utils.load_json

langchain.callbacks.utils.load_json(json_path: Union[str, Path]) str[source]

Load json file to a string.

Parameters

json_path (str) – The path to the json file.

Returns

The string representation of the json file.

Return type

(str)