It's not that it doesn't work with arrays, because it does. The issue is
that you have an 'associative' array, not a simple array. Since you are not
creating an standard array, why don't you just create actual JSON? Naming
your array JSON does not make it JSON. Change your code to this and it will
work fine and you can work with it in almost the same manor:
var JSON = {};
JSON ['Eigenschaft1'] = "Wert1";
JSON ['Eigenschaft2'] = "Wert2";
alert(qx.util.Json.stringify(JSON , false));
Jim
On Sun, May 2, 2010 at 2:59 AM, julian-w <[email protected]> wrote:
>
> Hello,
> I want to convert an Array to a JSON-String, but it doesn't work.
> Here's an example: http://tinyurl.com/2vood6s http://tinyurl.com/2vood6s
>
> I only get "[]" :(
>
> I hope somebody can help me.
>
> Greetings from Germany
> Julian
>
> -----
> My site: http://projects-tutorials.de/ http://projects-tutorials.de/
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/qx-util-Json-stringify-doesn-t-work-with-Arrays-tp4992547p4992547.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel