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

  • SEARCH
  • Home
  • 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 8916671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:17:59+00:00 2026-06-15T05:17:59+00:00

I am new to JSON parsing and I would need your kind help to

  • 0

I am new to JSON parsing and I would need your kind help to understand how to parse a JSON object inside an Array.

My JSON structure log is below:

{A:"text",B:"text",C:[{T:"Text",D:{E:"Text",F:{G:"time"}},H:{I:"200"},J:{K:{L:53,M:2.2},N:"Text"},P:{Q:"Time"}}]}

log is my input JSON as above.

JSONObject logJson = (JSONObject) JSONSerializer.toJSON( log );
String a = logJson.getString("A");
String b = logJson.getString("B");

Now question is how do I parse into the Array and get JSONObject. I am using net.sf API.

  • 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-06-15T05:18:01+00:00Added an answer on June 15, 2026 at 5:18 am

    First of all, I think your json format is invalid.

    The “key” must stand in ” as well e.g.
    "A":"text"

    You can get the “C” Array by using JSONArray jsonArray = logJson.getJSONArray("C");

    On the array you can iterate:

    for(int i = 0; i < jsonArray.length(); i++)
    {
        JSONObject obj = jsonArray.getJSONObject(i);
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to JSON parsing, I know how to parse XML, but JSON
Im new to JSON and php. I need to grab the lat and lng
For example, I would like to create a new 'Tweet' object from the following
I would like to correct a JSON parsing error of axis2-json included in WSO2
am new to Json so a little green. I have a Rest Based Service
I am new to json, js etc. So I am a bit confused about
I am very new to Json and my goal to create the Json output
Hi am new to JSON and I will like to retrieve the values for
I am new to JSON programming in J2ME. I discovered that Json is used
I'm new with JSON.NET and I'm trying to deserialize a JSON string to a

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.