parse Settings
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)
Content copied to clipboard
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)
Content copied to clipboard