load_from_file


Description:

public bool load_from_file (string filename) throws Error

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

If the file is large or shared between processes, [method@Json.Parser.load_from_mapped_file] may be a more efficient way to load it.

See also: [method@Json.Parser.load_from_data]

Parameters:

this

a parser

filename

the path for the file to parse

Returns:

`TRUE` if the file was successfully loaded and parsed.