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 8494891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:25:17+00:00 2026-06-10T23:25:17+00:00

I am trying to parse the following json (org.simple.json) { TotalCount:4, Items:[ { ProductID:879605004504,

  • 0

I am trying to parse the following json (org.simple.json)

  {
   "TotalCount":4,
   "Items":[
      {
         "ProductID":879605004504,
         "Product":{
            "Subtitle":"Vibram Fivefingers",
            "ID":879605004504,
            "Attributes":[
               {
                  "Value":"Vibram Fivefingers",
                  "Key":"Brand"
               },
               {
                  "Value":"Brown",
                  "Key":"Color"
               }
            ],
            "Media":{
               "ImageTile":"http:\/\/xxxx\/v5\/products\/879605004504\/images\/tile",

            },
            "Title":"Mens Vibram FiveFingers KSO Trek Shoes",
            "References":[
               {
                  "Name":"travelcountry.com",
                  "Link":"http:\/\/www.travelcountry.com\/shop\/vibram-fivefingers\/kso-trek-mens.html?RefId=29&RefType=Affiliate"
               },
               {
                  "Name":"summithut.com",
                  "Link":"http:\/\/www.summithut.com\/products\/mens-kso-trek\/?rc=googlebase"
               }
            ]
         },
         "ID":4,
         "CreatedAt":1346523371000000
      },
      {
         "ProductID":773040867635,
         "Product":{
            "Subtitle":"Chaco",
            "ID":773040867635,
            "Attributes":[
               {
                  "Value":"Available in Multiple Colors! - CAO1405: Credence Tall Boot by Chaco Features: -Women s Credence Tall Boot in Sienna. -Available in whole and half size. -Available in Medium width only. -The upper is constructed from full grain leather. -Part of the...",
                  "Key":"Description"
               },
               {
                  "Value":"Chaco",
                  "Key":"Manufacturer"
               },
               {
                  "Value":"Adult",
                  "Key":"Age Segment"
               },
               {
                  "Value":"Black",
                  "Key":"Color"
               },
               {
                  "Value":"Boots",
                  "Key":"Footwear Type"
               },
               {
                  "Value":"5",
                  "Key":"Size"
               }
            ],
            "Media":{
               "ImageTile":"http:\/\xxxx\/v5\/products\/773040867635\/images\/tile",

            },
            "Categories":[
               "Hidden > Shoes > Women's > Boots"
            ],
            "Title":"Chaco Credence Tall Boot - Women's"
         },
         "ID":3,
         "CreatedAt":1346523325000000
      }
   ]
}

I have no clue on how to parse this json ? It has the total count of items .
Thanks.

  • 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-10T23:25:18+00:00Added an answer on June 10, 2026 at 11:25 pm

    This should get you started and you’ll need to continue out your definitions….

    JSONObject rootObject = new JSONObject(inputString);
    int totalCount = rootObject.getInt("TotalCount");
    JSONArray items = rootObject.getJSONArray("Items");
    
    JSONObject item = null;
    JSONObject itemDetails = null;
    int productID = 0;
    String subtitle = null;
    
    for(int i = 0; i < items.size(); i++) {
        item = items.getJSONObject(i);
        productId = item.getInt()"ProductId");
        itemDetails = item.getJSONObject("Product");
        subtitle = itemDetails.getString("Subtitle");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just trying to parse a simple JSON string in the following format: [X,Y,Z]
I am trying to parse the following JSON string remotely: [{name:Object1,data:[1,2]},{name:Object2,data:[3,4]}] I am doing
I am trying to parse the json values from the following stream: {id: tag:search.xxxxx.com,2005:xxxxxxxxxxx}
I'm trying to parse the following JSon (which was validated I think last time
With reference to Parse JSON in C# I am trying to parse the following
I'm trying to parse the following JSON string returned by httpResponse : { message
I am trying to parse the following JSON data, but it seems that it
I am trying to parse the following string to JSON object.It is giving me
Hi I am trying to parse the following bit of json with Jquery so
I am trying to parse JSON of the following form using aeson {field:{name:...}} or

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.