Arguments
string
required
JSON string ที่ถูก parse ก่อน formatting. function อ่าน argument นี้ด้วย string type checking.
EncodeOptions
Optional encode options ที่ส่งเข้า re-encode step. json.format อ่าน encode options เดียวกับ json.encode แล้วบังคับ pretty เป็น true.
DecodeOptions
Optional decode options ที่ใช้ระหว่าง parsing input JSON. boolean ตั้งค่า useNull. table ตั้งค่า useNull และ maxDepth ได้.
Returns
string
Readable formatted JSON string ที่สร้างหลัง parsing และ re-encoding input.