Skip to main content

引数

any
必須
encode と decode される Value。Supported JSON values は JSON を round-trip します。unsupported types は、encode options が error を要求しない限り null として encode されます。
EncodeOptions
encode step に渡される Optional encode options。sortKeys、emptyTableAsArray、errorOnUnsupported、encodeInvalidNumbersAsNull、maxDepth、pretty、indent など。

戻り値

any
encoded JSON から生成された Decoded value。Objects と arrays は decoder 由来の JSON kind markers を持つ new tables です。JSON null values は json.null になります。

型

EncodeOptions

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

例

nested values を変更する前に、JSON-compatible value を json.encode と json.decode で round-trip します。