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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:55:24+00:00 2026-06-06T12:55:24+00:00

I have to return all my JSON string. For example I have one json

  • 0

I have to return all my JSON string. For example I have one json string:

[{"Locationvalue":"Payroll  - 9","LocationId":"465","IsSelected":false}]

and also returned second JSON string:

[{"CC2Description":"Denver - DN","CC2":"DN","isSelected":false},{"CC2Description":"Las Vegas - LV","CC2":"LV","isSelected":false}]

ans so on.

In android I have written this:

JSONArray JsonObject = new JSONArray(JsonString.toString());

for(int i=0;i<JsonObject.length();i++)
{
   Log.v("log",  JsonObject.getString(i));
}

but I can only access one JSON array. I want other JSON array also.

  • 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-06T12:55:25+00:00Added an answer on June 6, 2026 at 12:55 pm

    You cannot decode multiple separate json structures in a single call. A JSON structure must be a complete proper Javascript object or array on its own, e.g.

    Two arrays like this:

    [1,2,3][4,5,6]
    

    is invalid, because it’s two separate arrays smashed up against each other. However,

    [[1,2,3],[4,5,6]]
    

    is ok, because it’s a single array that contains two separate child arrays. You can return multiple separate json strings, but they must be contained within a single structure.

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

Sidebar

Related Questions

I have webservice that can return data in multiple formats. For example json and
I have this following code which will return all the current semesters. How do
I have a written a method to get all the records and return in
All, I have a method that is currently used to invoke DLLs of return
I have a function called CreateCriteriaExpression that takes a json string and creates a
I have a situation where the JSON returned from a REST -service returns a
I have an arraylist called fetchContactName() which returns all names (31) in my contact
I have an SQL query that returns all companies records ignore the ones with
We have a simple domain where FirstName_s:Bob returns 40 documents, and -Department_t:Ninjas returns all
I'm using Sql-Server, and I have the below query which returns all columns that

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.