Skip to main content

引数

string
必須
Formatting の前に parse される JSON string。function はこの argument を string type checking で読みます。
EncodeOptions
Re-encode step に渡される optional encode options。json.format は json.encode と同じ encode options を読み、その後 pretty を true に強制します。
DecodeOptions
Input JSON の parsing 中に使われる optional decode options。boolean は useNull を設定します。table は useNull と maxDepth を設定できます。

戻り値

string
Input の parsing と re-encoding 後に生成される readable formatted JSON string。

型

EncodeOptions

JSON のシリアル化とフォーマットを制御します。

DecodeOptions

JSON 解析動作を制御します。

例

Existing JSON を parse し、readable formatted JSON として re-encode します。