Skip to main content

引数

string
必須
Parse する JSON string。function はこの argument を string type checking で読みます。
DecodeOptions
Optional decode options。boolean は useNull を設定します。table は useNull と maxDepth を設定できます。

戻り値

any
Decoded value。JSON objects と arrays は JSON type markers を持つ tables になります。strings は Lua strings、numbers は Lua numbers、booleans は booleans になり、null は useNull が false でない限り json.null になります。

型

DecodeOptions

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

例

json.decode が使うものと同じ function で JSON を parse します。