Parser.loadFromFile

bool loadFromFile(string filename)

Loads a JSON stream from the content of filename and parses it.

If the file is large or shared between processes, json.parser.Parser.loadFromMappedFile may be a more efficient way to load it.

See also: json.parser.Parser.loadFromData

Parameters

filenamethe path for the file to parse

Returns

TRUE if the file was successfully loaded and parsed.

Throws