Jsonfileread()

Reads and decodes the given file to JSON. This function caches the result so it won't keep reading/decoding the file on every request. The cache will remove items from memory that haven't been touched in over 60 seconds.

Usage

OBJECT = Jsonfileread( filesrc, strictmapping, charset )
Argument Summary
filesrc path to the file source, full path name is required.
strictmapping Flag to determine if CFML Query objects should be recognized and converted to a Query object; defaults to true [optional]
charset the character set to use for reading the file [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

Jsonfileread(
   filesrc=?, 
   strictmapping=?, 
   charset=?
);

Supports passing parameters as a structure using ArgumentCollection:

Jsonfileread( ArgumentCollection={
   filesrc : ?, 
   strictmapping : ?, 
   charset : ?
} );