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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:29:46+00:00 2026-06-12T15:29:46+00:00

I am new to JSON parsing, I know how to parse XML, but JSON

  • 0

I am new to JSON parsing, I know how to parse XML, but JSON seems compleatly different and confusing. I have this Array here:

{
    "domain": "Lorem Ipsum",
    "next_page_id": null,
    "url": "Lorem Ipsum",
    "short_url": "Lorem Ipsum",
    "author": "Lorem Ipsum",
    "excerpt": "Lorem Ipsum",
    "direction": "Lorem Ipsum",
    "word_count": 0,
    "total_pages": 0,
    "content": "Lorem Ipsum",
    "date_published": "2012-10-06 17:39:13",
    "dek": "Lorem Ipsum",
    "lead_image_url": "Lorem Ipsum",
    "title": "Lorem Ipsum",
    "rendered_pages": 1
}

I never used JSON before, but I always tought a JSON array would have a name. But this does not have one, so I can’t do this:

JSONArray jArray = jObject.getJSONArray("ARRAYNAME");

Can somebody help me parsing 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-12T15:29:47+00:00Added an answer on June 12, 2026 at 3:29 pm

    This isn’t a JSON Array. This is a JSON Object.
    Json array is represented by []
    You can access these elements like so

    String url = jObject.getString("url");
    

    An array, for example would look like this:

    {
        "domain": "Lorem Ipsum",
        "next_page_id": null,
        "url": "Lorem Ipsum",
        "array":
            [
                "element1",
                "element2"
            ]
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have done JSON parsing earlier but this one is not working for me.
I new to parsing JSON - up until this point, I've been purely XML.
I'm reaaallly new at JSON, but here's what I got. I needed to create
I'm new to Android. I know a little about JSON parsing in Android. I'm
i am new in json parsing .I don't know how to send data to
I have some JSON I am parsing that looks like this: { dhkplhfnhceodhffomolpfigojocbpcb: {
am new to Json so a little green. I have a Rest Based Service
I have a problem accessing JSON data. I'm new to JSON and jquery so
In short, this is a sketch of the JSON object I want to parse
I'm trying to work on a new project parsing some JSON data for a

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.