Difference between revisions of "Json.encode"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2013.09<br/> === Description === Returns encoded json string from provided Lua table <source lang="lua"> = json.encode(data,) </source...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2013.09<br/> | '''Available since:''' Gideros 2013.09<br/> | ||
| + | '''Class:''' [[json]]<br/> | ||
| + | |||
=== Description === | === Description === | ||
| − | Returns encoded json string from provided Lua table | + | Returns encoded json string from provided Lua table. |
| − | < | + | <syntaxhighlight lang="lua"> |
| − | + | json.encode(data) | |
| − | </ | + | </syntaxhighlight> |
| − | '''data | + | |
| + | === Parameters === | ||
| + | '''data''': (table) Lua table which to serialize to json<br/> | ||
| + | |||
| + | {{Json}} | ||
Latest revision as of 14:31, 13 July 2023
Available since: Gideros 2013.09
Class: json
Description
Returns encoded json string from provided Lua table.
json.encode(data)
Parameters
data: (table) Lua table which to serialize to json