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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:25:43+00:00 2026-06-08T09:25:43+00:00

I’m having some difficulties parsing a JSON package in Android. I currently have everything

  • 0

I’m having some difficulties parsing a JSON package in Android.

I currently have everything set up so the JSON is an array of objects, then each object has an array of attributes. For example, say I have an object called Colors in my package. Then each Color entry would be in the Colors object. Each Color entry would also have entries for R, G, B values.

This type, I can deal with fine. However, I’m now running into an instance where one of those entries (where the R,G,B values would be) has an array within it. I’m not sure how to go about accessing that and processing it.

I’m going to update with an example of the JSON package, since I’m worried I wasn’t very clear.

Edit: Here’s the JSON. Say I want to access the R value in the ColorOverlays.

{“Package”:[
{“Things”:[{“ProgramId”:73,”TypeId”:68,”CategoryId”:null,”CategoryName”:null,”ThingId”:121,”ThingName”:”Mahalo”,”ThingDescription”:”Get your festival on and snap some shots!”,”ThingPrice”:0.00,”SellerProductId”:null,”Number2″:1342655700,”Number1″:1342655700,”IsAvailable”:true,”ImageOverlays”:[{“ThingId”:121,”ThingOverlayId”:295,”ImageOverlayBase64″:null,”ImageOverlayFileTypeExtension”:null,”Width”:1024,”Height”:1024,”A”:1.00000,”BlendModeId”:1,”OrderNum”:2,”IsUseSource”:false}],”ColorOverlays”:[{“ThingId”:121,”ThingOverlayId”:294,”R”:157.00000,”G”:71.00000,”B”:187.00000,”A”:0.52873,”BlendModeId”:6,”OrderNum”:1}],”ThingsampleImageBase64″:null,”ThingsampleImageFileTypeExtension”:””,”ThingsampleImageWidth”:546,”ThingsampleImageHeight”:546,”Captures”:[{“ThingCaptureId”:87,”ThingId”:121,”CaptureFrameOverlayId”:null,”IsRemoved”:false,”AddDate”:1342637814,”LastUpdated”:1342637814,”Saturation”:0.0,”Contrast”:0.0,”Brightness”:0.0,”Low”:null,”Mid”:null,”High”:null,”IsBlackWhite”:null,”IsInvert”:null,”IsSepia”:null}],”IsRemoved”:false},{“ProgramId”:73,”TypeId”:68,”CategoryId”:null,”CategoryName”:null,”ThingId”:122,”ThingName”:”Lots of Love”,”ThingDescription”:”Use this one!”,”ThingPrice”:0.00,”SellerProductId”:null,”Number2″:1342667100,”Number1″:1342667100,”IsAvailable”:true,”ImageOverlays”:[{“ThingId”:122,”ThingOverlayId”:298,”ImageOverlayBase64″:null,”ImageOverlayFileTypeExtension”:null,”Width”:1024,”Height”:1024,”A”:1.00000,”BlendModeId”:4,”OrderNum”:3,”IsUseSource”:false}],”ColorOverlays”:[{“ThingId”:122,”ThingOverlayId”:296,”R”:213.00000,”G”:86.00000,”B”:143.00000,”A”:0.77777,”BlendModeId”:4,”OrderNum”:1},{“ThingId”:122,”ThingOverlayId”:297,”R”:127.00000,”G”:127.00000,”B”:127.00000,”A”:0.50000,”BlendModeId”:1,”OrderNum”:2}],”ThingsampleImageBase64″:null,”ThingsampleImageFileTypeExtension”:””,”ThingsampleImageWidth”:546,”ThingsampleImageHeight”:546,”Captures”:[{“ThingCaptureId”:88,”ThingId”:122,”CaptureFrameOverlayId”:null,”IsRemoved”:false,”AddDate”:1342649164,”LastUpdated”:1342649164,”Saturation”:0.0,”Contrast”:0.0,”Brightness”:0.0,”Low”:null,”Mid”:null,”High”:null,”IsBlackWhite”:null,”IsInvert”:null,”IsSepia”:null}],”IsRemoved”:false}]}
]}

  • 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-08T09:25:45+00:00Added an answer on June 8, 2026 at 9:25 am

    If this is not something that you would throw away after the first use, then you might consider taking this up a level by modeling Java objects after your domain.

    Use any online JSON visualizer to see your JSON in 3D.

    Then, follow the following tutorial.

    http://java.sg/parsing-a-json-string-into-an-object-with-gson-easily/

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

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.