Right, learn was probably a strong word. Just meant that I'd never
used it before.

Is there an automated was to convert the XML to JSON with AS3?

--
Matt Perkins
-----------------
http://www.nudoru.com

On Jul 28, 2010, at 6:12 PM, Taka Kojima <t...@gigafied.com> wrote:

> There isn't really anything such as "learning JSON", JSON is basically just
> an object, and is your best bet.
>
> You can convert an XML string to JSON, store it, and then when you need it
> reconvert it to XML if you really need to, but unless you're doing things
> with E4X that is probably unnecessary.
>
> There are several libraries for a number of different languages to work with
> JSON, a lot of languages have the functionality built in, for AS3 you can
> use the as3 core lib or you can use this:
>
> http://www.thanksmister.com/index.php/archive/json-lite/
>
>
> Taka
>
> On Wed, Jul 28, 2010 at 3:03 PM, Matt Perkins <nudoru.m...@gmail.com> wrote:
>
>> Wondering if someone has had this problem and found a good solution ...
>>
>> I've developed a social simulation that has a lot of data that i need to
>> save between user sessions in the suspend_data SCORM variable to our LMS.
>> I'm formatting this data as XML since 1, has a good structure and 2, i know
>> it. Suspend_data only has 4k of space and my XML (as a string) is pretty big
>> - doubly so since the LMS encodes it and all of the single char <, > and /'s
>> get turned into 4 chars. But i've used attributes and 1-2 char tag names
>> where i can.
>>
>> I'm going to try to compress the string with ByteArray and see if that
>> helps, but I'm not sure if the "special characters" will mess with the LMS
>> communication - I've had that happen many times before with just HTML page
>> text.
>>
>> Other option is to learn JSON and do it that way.
>>
>> Have anyone else faced something like this and solved it?
>>
>> --
>> Matt Perkins
>> --------------------
>> http://www.nudoru.com
>>
>> _______________________________________________
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to