• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Parsing json

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I have this json,


and i have to parse this json in a loop and add to an List<SubCats> object ,and below shown is that object

public SubCats(String category_id, String category_name, String category_network,
                  String category_parent, List<SubCats> childSubCatsList, List<Packs> packsList) {
       this.category_id = category_id;
       this.category_name = category_name;
       this.category_network = category_network;
       this.category_parent = category_parent;
       this.subCatsList = subCatsList;
       this.packsList = packsList;
   }

and the json could go bigger, and i couldn't get it done so far,could any one help me?
 
dev goku
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually,I have cleared the issue myself.
reply
    Bookmark Topic Watch Topic
  • New Topic