fromJsonString

suspend fun fromJsonString(jsonString: String, config: ParserConfig = ParserConfig.DEFAULT): ParseResult

Creates a parser result from a JSON string.

Return

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

Parameters

jsonString

The JSON string to parse.

config

Configuration options for parsing.