Posts

Showing posts from August, 2013

Gson's missing get element function - Part II

The Gson missing recursive get function - Review. A while back, probably more than a year ago, I wrote an article Gson's Missing recursive get function  where I discussed the shortcomings of the current gson get function, whereby it only traverses top-level entry key for the search key. In this article I'll introduce a new functionality that allows for even deeper traversal of same name nodes until a primitive value is found (if needed). {      "result"   :   {          "total_items"   :   1 ,          "total_pages"   :   1 ,          "items_per_page"   :   25 ,          "current_page"   :   1 ,          "items"   :   {                  "username"   :   "test" ,                  "items"   :  {                   items: "12345"                 },                  "secret"   :   "" ,                  "application"   :