Function preprocessJsonInput

  • Utility function used to preprocess a string to be parsed as JSON. It replaces single backslashes with double backslashes, while leaving already escaped ones intact. It also extracts the json code if it is inside a code block

    Parameters

    • inputStr: string

    Returns string

Generated using TypeDoc