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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:19:28+00:00 2026-05-16T12:19:28+00:00

All, I’m working on a Flash AS2 project in which I have a choice

  • 0

All,

I’m working on a Flash AS2 project in which I have a choice of receiving a dataset in either XML or JSON.

The dataset is probably about 100-1,000 rows of data; each row has roughly 50 fields; most values are numeric.

If I use XML, I’ll be able to define the XML myself, to make sure it’s as compact as possible.

So, I could use something like this:

<rows>
    <row col0="1" col1="2" col2="3" ... col49="50" />
    ...
    <row col0="1" col1="2" col2="3" ... col49="50" />
</rows>

In my initial tests, both the JSON and XML data “weigh” about the same (in kbytes). However, I notice that Flash is able to parse the XML MUCH faster – it takes about 3x as long to parse the JSON. (I’m using the class from http://www.json.org/json.as).

Based solely on that, I’m inclined to use XML, even though JSON seems to be the much more popular choice these days.

Is the slower JSON parsing typical? Is there a faster class than the one from json.org? Is this because I’m using AS2 instead of AS3 (long story, don’t ask…)? Must I be doing something wrong?

Many thanks in advance for any advice or insight.

Cheers,
Matt Stuehler

  • 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-16T12:19:29+00:00Added an answer on May 16, 2026 at 12:19 pm

    With that small a dataset any differences would probably not be noticeable to the user. But if you are leaning toward XML for performance reasons, let me give you another nudge in that direction by pointing out that using XML lets you use E4X, which is like XPATH for ActionScript. It makes data manipulation easier in code.

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

Sidebar

Related Questions

All the articles I've found via google are either obsolete or contradict one another.
In order to apply a triggered animation to all ToolTip s in my app,
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
All the recent VisualSVN Server posts made me want to check it out. I
All front-end developers know the pain of coding for Firefox, then viewing our then
I want use html5's new tag to play a wav file (currently only supported
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

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.