Parser.loadFromFile

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

class Parser
bool
loadFromFile
(
string filename
)

Parameters

filename string

the path for the file to parse

Return Value

Type: bool

TRUE if the file was successfully loaded and parsed.