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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:57:06+00:00 2026-05-25T15:57:06+00:00

I have a JSON string that I use for my iOS app and it

  • 0

I have a JSON string that I use for my iOS app and it works fine, however it doesn’t have a key on the array. I don’t know how to call JSONArray in this case, can anybody make a suggestion besides changing my JSON to be different for the Android App (I’d like to use the same script for all my apps). Here is my JSON String:

[{"url":"uploads\/audio\/A Cold One.mp3", "title":"A Cold One"}, ...]

And my code looks like this:

JSONObject root = new JSONObject(result);
JSONArray jItems = root.getJSONArray("");

My exception:

Download stopped: org.json.JSONException: Value [{"url":"uploads\/audio\/A Cold One.mp3", "title:"A Cold One"}, ...]

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-05-25T15:57:07+00:00Added an answer on May 25, 2026 at 3:57 pm

    use this

    JSONArray jItems  = new JSONArray(yourJSONString);
    

    yourJSONString should start with ‘[‘. in your case the yourJSONString is result. you don’t have to convert it in to JSONObject in between.

    HTH.

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

Sidebar

Related Questions

I have one JSON that is coming in a string format. I need to
I have converted my Datatable to json string use the following method... public string
I have a JSON/string/array, not sure what it is now as it’s been through
I have a JSON string and I'd like to use to compose an object.
I have an ASP.NET MVC 3 website that communicates with my iOS app via
I have a class in my Silverlight app that (de-)serializes JSON strings to/from an
I have a json string: {1:{homeTeam:Home01,awayTeam:Away01,homeScore:0,awayScore:0,gameID:1},2:{homeTeam:Home11,awayTeam:Away11,homeScore:0,awayScore:0,gameID:2},3:{homeTeam:Home21,awayTeam:Away21,homeScore:0,awayScore:0,gameID:3}} that I would like to turn into an
I have a JSON string (from PHP's json_encode() that looks like this: [{id: 1,
I have a C# console app that serializes a POCO class to a JSON
I've made an android app that works fine in the emulator and when debugging

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.