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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:43:23+00:00 2026-06-04T00:43:23+00:00

{Result: { version: [ 001,002,003,004,005 ], Names: { 001: NoName,002: NoName,003: Cupcake,004: Donut,005: Eclair

  • 0
{"Result": {
    "version": [
      "001","002","003","004","005"
    ],
 "Names": {
      "001": "NoName","002": "NoName","003": "Cupcake","004": "Donut","005": "Eclair"
    }
}}

The above shown is the result which is i’m getting as a response now
how can i retrieve the corresponding names from the above.Pls. any one
help me in solving this.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-04T00:43:25+00:00Added an answer on June 4, 2026 at 12:43 am

    Please Refer this Example of Android Json Parsing

    you can do like below may help you.

    JSONObject mjsonObject = null;
            try {
                mjsonObject=new JSONObject(jsonString);
            } catch (JSONException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
            JSONArray mjsonArray;
    
            JSONObject mJsonObject2,jsonObjectNames;
            try{
                mJsonObject2= mjsonObject.getJSONObject("Result");
                mjsonArray=mJsonObject2.getJSONArray("version");
                jsonObjectNames=mJsonObject2.getJSONObject("Names");
    
                String[] versionName=new String[mjsonArray.length()];
                for(int i=0;i<mjsonArray.length();i++){
                    if(!mjsonArray.isNull(i)){
                        versionName[i]=mjsonArray.getString(i);
                    }
                }
                String [] versionString=new String[mjsonArray.length()];
    
    
    
            }catch(JSONException json){
                json.printStackTrace();
            }catch(NullPointerException excep){
    
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to modify version 2 to produce the same result as version 1,because in
[EDIT: This problem was a result of a bug within version 3.7.6] The following
http://rise4fun.com/Z3/MlnZ The correct result should be UNSAT (online version), but locally Z3 3.2 reports
I'm using the last version of Ubuntu which come with the gcc 4.4.5 version.
Here is a simplified version of my data. This is the result of a
Why Version 2 in the code below does not produce the same result as
A bit of searching returns this result: Which processes are running managed code and
I have a assembly version file (SolutionAssemblyVersion.cs) which I keep at the root of
Given code which plots result of a solution to ODE using a fast algorithm
I have this simplexml result object: object(SimpleXMLElement)#207 (2) { [@attributes]=> array(1) { [version]=> string(1)

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.