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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:46:22+00:00 2026-06-08T07:46:22+00:00

I am parsing an array of json elements on android. Following line generates following

  • 0

I am parsing an array of json elements on android. Following line generates following exception. I’ve validated the json file on some validation pages and all seems correct.
What’s wrong?

JSONObject object = new JSONObject(content);

The exception:

org.json.JSONException: Unterminated array at character 21 of {
    "info":[
       {
          "category":"Cocktail",
          "text":"Long Island Ice Tea",
          "info":"nur am 19. Juni",
          "imageUrl":"http://www.google.at/google.png",
          "thumbnailUrl":"http://www.google.at/google.png"
       },
       {
          "category":"Grill-Wochen",
          "text":"Steak vom Grill 350g",
          "info":"AB 16.09.2012",
          "imageUrl":"http://www.example.com/example.jpg",
          "thumbnailUrl":"http://www.example.com/example_thumb.jpg"
       }
    ]
 }
  • 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-08T07:46:23+00:00Added an answer on June 8, 2026 at 7:46 am

    I used a JSON parser online and checked your string. It does have a syntax error.

    Analyzing the JSON syntax at JSON.org we can verify that every object must start and finish with curved brackets (“{“). “Info” is an object – so it should be stated as so.
    I changed your code to

    { "info":[        
         {
           "category":"Cocktail",
          "text":"Long Island Ice Tea",
          "info":"nur am 19 Juni",
          "imageUrl":"http://www.google.at/google.png",
          "thumbnailUrl":"http://www.google.at/google.png"
         },                    
         {
           "category":"Grill-Wochen",
           "text":"Steak vom Grill 350g",
           "info":"AB 16.09.2012",
           "imageUrl":"http://www.example.com/example.jpg",           
           "thumbnailUrl":"http://www.example.com/example_thumb.jpg"        
         }     
      ] 
    }
    

    and the parser was happy with it.

    I hope it helps

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

Sidebar

Related Questions

I am using JSON parsing, I put data in array named JSON Array .
I need help in retrieving a JSON object and parsing the array into my
I have some problem with JSON parsing. When I hit URL, I've got JSON
I have a large nested array that I'm generating from parsing a CSV file
I am parsing a JSON file. After getting the NSDictionary, I parse the objects
I'm parsing JSON and getting an array of objects with javascript. I've been doing
I've got two pages, test.php which encodes a JSON array, and test.html which I
I have a problem parsing the array of objects from the JSON result. [
I have a problem with parsing my JSon Data in an Android application. I
I'm parsing a JSON array returned from YouTube, and while doing so I created

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.