Difference between revisions of "JSON DECODE FILE()"
From Lianjapedia
Line 21: | Line 21: | ||
[[Category:JSON Functions]] | [[Category:JSON Functions]] | ||
[[Category:Data Import]] | [[Category:Data Import]] | ||
+ | [[Category:Data Integration]] |
Revision as of 23:26, 9 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)