You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns multiple potential types. If you pass a serialized boolean, number, or string, then it will return the same type. If you pass a complex JSON object, it will return a table.
53
55
#### Parameters
54
-
1.`data` — The JSON data to decode.
56
+
1.`data` — The JSON or MessagePack data to decode.
55
57
2.`flags` — Options to augment the return value. Multiple options can be combined with bitwise OR (`|`). Defaults to `0`.
56
58
-`json.withnull` — decodes JSON null values as `json.null` instead of `nil`.
57
59
-`json.withorder` — adds an `__order` field to tables of decoded JSON objects. `json.encode` respects this, so this is perfect for modifying data while preserving order.
60
+
-`json.msgpack` — treats the input as MessagePack data instead of JSON.
0 commit comments