I'm experiencing some weird behavior wherein I get record data using the storage service like the following:
{"uname":"xxx","tlogin":1414983399,"tlast":1414983404,"fbid":"12345678912345678","tsav":1414983286}
but when I get the data using the storage service, the fbid field comes out as a float instead of just a string (fbid is returned as "1.23456789123456E+16") this behavior where a numerical string is returned as a float happens when the string length is greater than 15 characters (for example, "123456789123456" (only 15 char length) is properly converted as-is to its string value). I use the following methods:
To get the data, I call:
storageService.FindDocumentByKeyValue("pInfo", "uname", "xxx", myCallback);
In myCallback(string result, object data), I call:
string jsonDoc = ((Storage)data).GetJsonDocList()[0].jsonDoc;
the 'data' variable has the complete string value of fbid, it's only after GetJsonDocList() that the fbid seems to be converted to a float and then to a string. I'm using the App42_Unity3D_SDK_3.0 and I'm using Unity v4.5.4f1 on the iPhone, iPod, iPad Platform. Please help me on this problem, thank you.