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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:36:33+00:00 2026-06-11T05:36:33+00:00

I made a set of data and put into a JSON array and convert

  • 0

I made a set of data and put into a JSON array and convert it to string so that I could store it into my sqlite database. When I take it out, it is a String and it has the form of a JSON array:

String temp = ["0", "1", "2", "3",.....]

Is there any easy way for me to make this into a String array, JSON array or I have to use the old fashion method(substring, split.etc)?

  • 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-11T05:36:35+00:00Added an answer on June 11, 2026 at 5:36 am

    You can easily turn it back into a JSONArray by just constructing a new instance:

    String jsonString;  //The string data you pulled out of the DB
    JSONArray array = new JSONArray(jsonString);
    

    If you need to go further, you could iterate over the array and turn it into a collection:

    ArrayList<String> items = new ArrayList<String();
    for(int i=0; i < array.length(); i++) {
        items.add(array.optString(i));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made an iphone app to capture image from camera and to set that
I have a problem with a javascript set of functions that I made. This
I have a php script that outputs json data. For the purposes of testing,
I made a custom Class named MedinetParse that parses a webrequest. The parsed data
So I have made a set up file and install it to target computer
Assignments (i.e. set statements) made within an if block are not realized until after
I have set up an artifactory and made 3 repositories in it namely A,B
First I made an app and I set its application icon to a icon
My permalink structure is set so I have url.com/page I made a basic PHP
I have made my custom module in magento, in which I have set discount

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.