Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6014401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:41:12+00:00 2026-05-23T02:41:12+00:00

We have a complex json structure which we need to parse in Android. {

  • 0

We have a complex json structure which we need to parse in Android.

{
"StatusCode":0,
"StatusInfo":"Processed and Logged OK",
"Schools":[
    {
     "Id":"1",
     "Name":"School 1",
     "Class":[
        {
           "Id":"11",
           "Name":"Class 1",
           "Section":[
              {
                 "Id":"12",
                 "Name":"Section A"
              },
              {
                 "Id":"13",
                 "Name":"Section B"
              },
              {
                 "Id":"14",
                 "Name":"Section C"
              }
            ]
        },
        {
        "Id":"21",
        "Name":"Class 2",
        "Section":[
              {
                 "Id":"22",
                 "Name":"Section A"
              },
              {
                 "Id":"23",
                 "Name":"Section B"
              }
            ]

        }
        ]
    },
    {
     "Id":"5",
     "Name":"School 2",
     "Class":[
        {
           "Id":"51",
           "Name":"Class 1",
           "Section":[
              {
                 "Id":"512",
                 "Name":"Section A"
              },
              {
                 "Id":"513",
                 "Name":"Section B"
              },
              {
                 "Id":"514",
                 "Name":"Section C"
              }
            ]
        },
        {
        "Id":"52",
        "Name":"Class 2",
        "Section":[
              {
                 "Id":"522",
                 "Name":"Section A"
              },
              {
                 "Id":"523",
                 "Name":"Section B"
              }
            ]

        }
        ]
    }
]
}

I’ve checked various tutorials on json parsing in Android, but i got confused with this structure as it re-use the names under various Arrays. I would like to check if it would be easy to use libraries like GSON / Jackson to parse this json structure.

Also, if this structure is big, will it occupy more memory and have performance issue while parsing this structure each time to find a node?

Regards,
Aravind. C

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:41:13+00:00Added an answer on May 23, 2026 at 2:41 am

    Gson is probably the best way to go.
    If you are unsure how to build your java classes you can easily generate the classes with that json code you have online here -> JsonGen

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a complex json array which I want to target a specific line/string
I have a ViewModel with a kinda complex data structure. I need my view
I have a complex WPF UserControl made of other ContentControl templates which contain sets
Assuming Visual C/C++ 6, I have a complex data structure of 22399 elements that
I have javascript object which consists of complex array of structures with nested structures
I have a complex Clojure data structure that I would like to serialize -
I have a login.jsp page which contains a login form. Once logged in the
i have a input tag which is non editable, but some times i need
I have a complex JSON object that I want represent as C# class. I
I have a complex heirarchy of JSON objects posting to a WCF service. By

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.