parseSettings

Parse JSON string to Settings object.

// Sample usage of parser to parse settings JSON.
val parser = Parser()
val json: String = File("your-file.json").bufferedReader().readText()
val settings: Settings = parser.parseSettings(json)

fun parseSettings(bufferedSource: BufferedSource): Settings

Parse JSON buffered source to Settings object.

// Sample usage of parser to parse settings JSON.
val parser = Parser()
val bufferedSource: BufferedSource = File("your-file.json").source().buffer()
val settings: Settings = parser.parseSettings(bufferedSource)