then

inline fun <V1 : V, V2> then(property: KProperty1<V1, V2>, serialName: String? = null, block: JsonPathNode<V1, V2>.() -> Unit = {}): JsonPathNode<R, V>(source)

Parameters

serialName

we can't detect overridden serial names so if you have @SerialName set, then you will need to pass this through here.


inline fun <V2> then(property: KProperty1<out V, Collection<V2>>, serialName: String? = null, block: JsonPathNode<out V, V2>.() -> Unit = {}): JsonPathNode<R, out V>(source)

Support list, as lists need to be handled differently than object path.

This returns the Collection element type, so you can chain into the next property.