Hello,
I have JSON string:
var Jstring = "{"1":1,"2":2}";
I need to convert the Jstring to JavaScript array like this: var array =
[1,2];
I try this, but unsuccessfully:
var array = JSON.parse(Jstring);
Best regards,
Jaromír.
--
View this message in context:
http://qooxdoo.678.n2.nabble.c
05/04/2014 09:09 keltezéssel, jarous92 írta:
> Hello,
> I have JSON string:
>
> var Jstring = "{"1":1,"2":2}";
>
> I need to convert the Jstring to JavaScript array like this: var array =
> [1,2];
>
> I try this, but unsuccessfully:
>
> var array = JSON.parse(Jstring);
>
Well, you see, that JSON s