• Produces a JSON code block in markdown format, with optional length limit. If the pretty-printed JSON exceeds the limit, a message is shown instead of the full JSON.

    Parameters

    • object: object
    • maxLength: number = 5_000
    • tooLongText: string = '_As the code is pretty long, we inhibit pretty printing and syntax highlighting (JSON, hiding built-in):_'

    Returns string