fromFile

suspend fun fromFile(filePath: String, config: ParserConfig = ParserConfig.DEFAULT): ParseResult

Creates a parser result from a file path string.

Return

ParseResult.Success with the parsed data or ParseResult.Error with error information.

Parameters

filePath

Path to the JSON file.

config

Configuration options for parsing.