Hi,

i tryed using the reviver function of the Json.parse. Here is what i was
playing with in the qx.lang.Json.js class.

statics.parse = function(data){return JSON.parse(data, function(key, value){
            if(typeof value == "number"){
                return value+"";
            }else
                return value;
        });
 };


The fact that "value" is already an JS object. The big number is already
lost. So it's not the way to go i think.


Meanwhile if i check the response of the request. I get the correct value.

Server response:
{
bigNum : 123456789012345678
}

But the problem occurs even sooner. If i do just this:
statics.parse = function(data){console.log(data);}

//outputs: "{bigNum : 1234567890123456*80* }"

The response "data" is still a string, but the number is already changed.
That is very odd.


Regards,
Defero





--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/remote-Request-json-and-big-numbers-tp7585656p7585677.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to