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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:38:54+00:00 2026-06-12T22:38:54+00:00

I try to convert some JSON string data from JSON object into an array.

  • 0

I try to convert some JSON string data from JSON object into an array.
When I loop over the JSON is it assign the JSON strings into diffrent array cells, eventually I get all the strings from the JSON but in diffrent order in the array each time I run the program.

 for (var i:String in data)
    {
       // get panel tabs and players for each tab
       for (var f:String in data[i].tabs)
        {
          tabsNames.push(f);
            }
    }

sometimes tabsNames = [ 1,2,3]
sometimes tabsNames = [ 2,3,1] etc’

I cant use sort because I cant know the type of the information that I will get from the JSON.

  • 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-12T22:38:55+00:00Added an answer on June 12, 2026 at 10:38 pm

    A JSON object is an unordered set of name/value pairs:

    "obj" : {"propA" : "valueA", "propB":"valueB"}
    

    A JSON array is an ordered collection of values:

    "arr" : ["propA":"valueA", "propB":"valueB"]
    

    If your data will be stored in JSON Object as list, you always get data in same order.

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

Sidebar

Related Questions

I try to convert a ASN.1 Byte Array into a String with Java. My
When try to convert string value in date-time format some time string variable comes
My problem is the following. I try to convert a string into double. In
im trying to convert a json object to a string by using gson here
Here is my class where I try to get into a JSONArray some data
I'm trying to convert some XML data coming from a CLOB to a XMLType
When I try to convert between date and string in Flash CS4, I use
In Java you can try to convert any String value to Integer, but when
I know of some JSON libs around and I'm currently looking into Google-JSON but
Possible Duplicate: Convert some code from C++ to C I've got some code 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.