JSON DECODE FILE()

From Lianjapedia
Jump to: navigation, search

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)