Difference between revisions of "JSON DECODE FILE()"
From Lianjapedia
(Created page with '==Purpose== Function to create a dynamic array (object) from a JSON formatted file ==Syntax== JSON_DECODE_FILE(<expC>) ==See Also== ACLASS(), ADDPROPERTY(), [[AMEMBERS(…') |
|||
Line 19: | Line 19: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:JSON Functions]] |
Revision as of 01:46, 7 December 2012
Contents
Purpose
Function to create a dynamic array (object) from a JSON formatted file
Syntax
JSON_DECODE_FILE(<expC>)
See Also
ACLASS(), ADDPROPERTY(), AMEMBERS(), COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, GETURL(), JSON_DECODE(), JSON_ENCODE(), LIST CLASSES, LOADOBJECT(), NEWOBJECT(), OBJECT(), POSTURL(), PRINT_JSON(), PRINT_HTML(), PRINT_R(), PRINT_XML(), REMOVEPROPERTY(), REQUIRE_ONCE(), SAVEOBJECT(), SQL SELECT, WITH, XML_DECODE_FILE()
Description
The JSON_DECODE_FILE() function is used to create a dynamic array (object) from the JSON formatted file whose filename is specified in <expC>.
Example
filename = geturl("http://www.myserver.com/getsomepage.rsp?name=smith&month=10", 30, array(), "myfilename.json") myobject = json_decode_file(filename)