This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't retrieve value from JsonNode mapped via Ektorp  RSS feed

James Gibbs
Posts: 29
Android Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm building an Android app which replicates a CouchDB using TouchDB. I create a view with all the documents and pass it to my own implementation of CouchBaseViewAdapter, which links it to my ListView:

In the SyncListAdapter I override getView() and try and extract the "header" field of each JsonNode which has each has been mapped to the results of my viewquery by Ektorp:

However item.get("header") always returns null, even though the same amount of list items are populated as the amount of docs in the DB, so I assume everything else is working.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!