langchain_community.utilities.clickup.load_query¶

langchain_community.utilities.clickup.load_query(query: str, fault_tolerant: bool = False) Tuple[Optional[Dict], Optional[str]][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[Optional[Dict], Optional[str]]

Exceptions:

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