posted this in jackson-kotlin, but i think that ma...
# announcements
h
posted this in jackson-kotlin, but i think that may not be the best class to paste that. so i’ll move it to there: is there any way i can create my own custom temporary object for each json parse?
Copy code
{
  "book": {
    "publisher": "Disney-Hyperion",
    "image": "https://images.isbndb.com/covers/64/31/9781484746431.jpg",
    "title_long": "The Trials of Apollo Book Three The Burning Maze",
    "date_published": "2018-05-01",
    "authors": [
      "Rick Riordan"
    ],
    "title": "The Trials of Apollo Book Three The Burning Maze",
    "isbn13": "9781484746431",
    "binding": "Hardcover",
    "publish_date": "2018-05-01",
    "isbn": "1484746430"
  }
}
I can do stuff like if(jsonObject.has(“isbn”)) isbn = jsonObject.get(“isbn”)