引数
string
必須
parse する JSON text。parser は optional surrounding whitespace 付きの単一 JSON value を受け入れ、invalid syntax または trailing non-whitespace characters がある場合に throw します。
DecodeOptions
Optional decode options。boolean は useNull を直接設定します。table は useNull と maxDepth を設定できます。maxDepth は 1 から 4096 に clamp されます。
戻り値
any
Decoded value。JSON objects と arrays は JSON type markers を持つ tables になります。strings は Lua strings、numbers は Lua numbers、booleans は booleans になり、null は useNull が false でない限り json.null になります。