mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-01-07 11:41:54 -05:00
27 lines
390 B
Markdown
27 lines
390 B
Markdown
|
Decodes a JSON string into a table.
|
||
|
|
||
|
```lua
|
||
|
result, err = json.decode("s")
|
||
|
```
|
||
|
|
||
|
### Parameters ###
|
||
|
|
||
|
`s` is the string to decode.
|
||
|
|
||
|
|
||
|
### Return Value ###
|
||
|
|
||
|
`result` is the resulting table, or `nil` on failure
|
||
|
|
||
|
`err` is the error message if there is one available, always set to `nil` on success
|
||
|
|
||
|
|
||
|
### Availability ###
|
||
|
|
||
|
Premake 5.0 or later.
|
||
|
|
||
|
|
||
|
### See Also ###
|
||
|
|
||
|
* [json.encode](json.encode.md)
|