Skip to main content

Arguments

string
required
JSON string ที่ถูก parse ก่อน minifying. function อ่าน argument นี้ด้วย string type checking.
DecodeOptions
Optional decode options ที่ใช้ระหว่าง parsing input JSON. boolean ตั้งค่า useNull. table ตั้งค่า useNull และ maxDepth ได้.

Returns

string
JSON string ที่สร้างหลัง parsing และ re-encoding input ด้วย default encode options.

Types

DecodeOptions

ควบคุมพฤติกรรมการแยกวิเคราะห์ JSON

ตัวอย่าง

Parse valid JSON แล้ว re-encode ด้วย default compact JSON output.