Argumente
string
erforderlich
JSON string, der vor dem formatting parsed wird. Die function liest dieses argument mit string type checking.
EncodeOptions
Optional encode options fuer den re-encode step. json.format liest dieselben encode options wie json.encode und setzt danach pretty auf true.
DecodeOptions
Optional decode options fuer das parsing des input JSON. Ein boolean setzt useNull. Eine table kann useNull und maxDepth setzen.
Rückgaben
string
Readable formatted JSON string, der nach parsing und re-encoding des input erzeugt wird.