tock / ai.tock.shared.jackson / com.fasterxml.jackson.core.JsonParser

Extensions for com.fasterxml.jackson.core.JsonParser

fieldNameWithValueReady

Return the current field name, with the value ready to read.

fun JsonParser.fieldNameWithValueReady(): String?

read

Read fields from a JsonParser.

fun <FIELDS : Any> JsonParser.read(readValue: (FIELDS, String) -> Unit): FIELDS

readListValues

Read a list of values from a JsonParser.

fun <T : Any> JsonParser.readListValues(): List<T>

readValue

Read value from a JsonParser.

fun <T : Any> JsonParser.readValue(): T!