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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:54:00+00:00 2026-06-04T18:54:00+00:00

I want to fetch data from json array using java gson library following is

  • 0

I want to fetch data from json array using java gson library following is the json string to parse

{
    'result': 'success',
    'value': {
        'count': 201671,
        'data': [
            {
                'id': '14906999986115',
                'address': '848E3rdSt',
                'zipcode': '90001',
                'name': 'montreras',
                'state': 'CA',
                'city': 'LosAngeles'
            },
            {
                'id': '14906999999454',
                'address': '92E75thSt',
                'zipcode': '90001',
                'name': 'AD.Graves',
                'state': 'CA',
                'city': 'LosAngeles'
            },
            {
                'id': '14906999997706',
                'address': '1320E83rdSt',
                'zipcode': '90001',
                'name': 'A.Irvin',
                'state': 'CA',
                'city': 'LcopAngeles'
            },
            {
                'id': '14906999982106',
                'address': '14081/2E82ndSt',
                'zipcode': '90001',
                'name': 'AdmoniaHurt',
                'state': 'CA',
                'city': 'LosAngeles'
            },
            {
                'id': '14906999996091',
                'address': '20E77thSt',
                'zipcode': '90001',
                'name': 'AdolphA.,
                'state': 'CA',
                'city': 'LosAngeles'
            }
        ]
    }
}

How to get data from data array in above string?

  • 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-04T18:54:02+00:00Added an answer on June 4, 2026 at 6:54 pm

    Try something like this given you json is valid and has a similar structure

    jsonStr = "your json string here";
    
    Result result = gson.fromJson(jsonStr, Result.class)
    
    class Result{
     public String result;
     public Value value;
    }
    
    class Value{
     public int count
     public ArrayList<Data> data;
    }
    
    class Data{
     public String id;
     public String address;
     public String zipcode;
     public String name;
     public String state;
     public String city;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In asp.net(C#) i want to fetch data from a database using a stored procedure
I want to fetch data from the webpage, that contains some json data. The
i want to fetch information from the database using objects. i really like this
I want to fetch data from this URL: http://webservices.ns.nl/ns-api-stations . This URL requires a
I want to populate a collection from an json file, which has other data
I have an application where i want to fetch data from local server. like
i retrieved data from mysql tables in json using php i.e $table_first = 'recipe';
Is there a way to fetch data from Oracle UCM's JSON option and use
I am using PHP CURL to fetch data from a server. The response can
I want to get json result using Jquery. Now I always got 'undefined' result.

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.