https://kotlinlang.org logo
#jackson-kotlin
Title
# jackson-kotlin
h

Hamza

06/12/2018, 3:56 PM
i got the hang of it!
Copy code
mapper.readTree(json).at("/books").forEach {
      it.fields().forEach {
        println("${it.key} to ${it.value}")
      }
      println("--")
    }
(i turned “book” into “books”, and into an array of objects! :))