Read JSON file to Object Kotlin
How can I read JSON file and then put this into objects define in @Document - model for MongoDB.
I'm looking for something like jackson object mapper in Java. It doesn't work here becouse Documen - model don't have empty constructor.
@Document(collection = "XXX")
class Room(@Id
private val id: String?,
private val name: String){there is toString() method}