parseRecords

Parse JSON string to Records object.

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

println("Got records: ${records.locations.size} locations.")

fun parseRecords(bufferedSource: BufferedSource): Records

Parse JSON buffered source to Records object.

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

println("Got records: ${records.locations.size} locations.")