load_query#

langchain_community.utilities.clickup.load_query(query: str, fault_tolerant: bool = False) Tuple[Dict | None, str | None][source]#

Parse a JSON string and return the parsed object.

If parsing fails, returns an error message.

Parameters:
  • query (str) – The JSON string to parse.

  • fault_tolerant (bool) –

Returns:

A tuple containing the parsed object or None and an error message or None.

Return type:

Tuple[Dict | None, str | None]

Exceptions:

json.JSONDecodeError: If the input is not a valid JSON string.