Produces a JSON code block in markdown format, with optional length limit.
If the pretty-printed JSON exceeds the limit, a message is shown and the JSON is printed compactly; what
still exceeds hardLimit characters is cut, as a page GitHub cannot render shows nothing at all.
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):_'
Produces a JSON code block in markdown format, with optional length limit. If the pretty-printed JSON exceeds the limit, a message is shown and the JSON is printed compactly; what still exceeds
hardLimitcharacters is cut, as a page GitHub cannot render shows nothing at all.