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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:17:49+00:00 2026-06-03T00:17:49+00:00

I want to extract a JSON string from a database and update a textview.My

  • 0

I want to extract a JSON string from a database and update a textview.My Json string looks like this:

[
    {
        "meaning": "A boy or young man (often as a form of address)",
        "examples": [
            "I read that book when I was a <em>lad</em>",
            "come in, <em>lad</em>, and shut the door"
        ]
    },
    {
        "meaning": "A group of men sharing recreational, working, or other interests",
        "examples": [
            "she wouldn't let him go out with the <em>lads</em> any more"
        ]
    },
    {
        "meaning": "A man who is boisterously macho in his behavior or actions, esp. one who is interested in sexual conquest",
        "examples": [
            "Tony was a bit of a <em>lad</em>âalways had an eye for the women"
        ]
    },
    {
        "meaning": "A stable worker (regardless of age or sex)",
        "examples": []
    }
]

I just want to extract “meaning”.How can i do that?

  • 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-03T00:17:51+00:00Added an answer on June 3, 2026 at 12:17 am

    First, this is a JSON array, with many meanings inside it.

    You can iterate over it like that:

    JSONArray jarr = new JSONArray(theJsonString);
    for (int i = 0; i < jarr.length(); ++i)
    {
        JSONObject jCell = jarr.getJSONObject(i);
        String meaning = cell.getString("meaning");
        // set it as text? concatenate the strings?
    }
    

    Note:

    • To keep the code clear, I didn’t handle exceptions, do it in your code.
    • Read more about the JSON format.
    • The following classes are part of android: JSONArray, JSONObject.
    • Worth reading, next time you won’t have to ask 🙂
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSON response that looks like this. I want to extract the
I want to extract two consecutive words starting from each word in a string.
If I have a string where there is a valid JSON substring like this
I have a exception from lift-json when I want to deserialize a json string.
I'm a newbie with Json, so I want to extract some app information from
I want a method that extracts the data from a JSON-object parsed before as
I want extract the path of images from a html page using PHP-preg_match_all(), the
I want to extract from a webpage all URLs how can I do that
I want to extract only the leaf nodes from an XML document (i.e., only
I want to extract Urdu phrases out of a user-submitted string in PHP. For

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.