readOnlySerializer

inline fun <T> readOnlySerializer(crossinline reader: (Json, JsonValue, Class<*>?) -> T): Json.Serializer<T>

Factory function to create a ReadOnlyJsonSerializer from lambda.


inline fun <T> readOnlySerializer(crossinline read: (JsonValue) -> T): Json.Serializer<T>

Factory function to create a simplified ReadOnlyJsonSerializer, which accepts only JsonValue.