FromJSON: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Server client function}}<!-- Change this to "Client function" or "Server function" appropriately--> <!-- Describe in plain english what this function does. Don't go into detai...) |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}}This function parses a JSON formatted string into variables. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
var fromJSON ( string json ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''json:''' A JSON formatted string | |||
*''' | |||
===Returns=== | ===Returns=== | ||
Returns variables read from the JSON string. | |||
Returns | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
-- | --Needs example | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Server_functions}} | {{Server_functions}} | ||
[[Category:Needs_Example]] <!-- leave this until the example is completed. --> | [[Category:Needs_Example]] <!-- leave this until the example is completed. --> | ||
[[Category:Incomplete]] <!-- leave this unless you complete the function --> | [[Category:Incomplete]] <!-- leave this unless you complete the function --> |
Revision as of 13:48, 20 December 2007
This function parses a JSON formatted string into variables.
Syntax
var fromJSON ( string json )
Required Arguments
- json: A JSON formatted string
Returns
Returns variables read from the JSON string.
Example
--Needs example