I'm trying to parse some timestamps from our server inside a Task and having trouble with long numbers.
The numbers output from ParseJSON() are "invalid"
If I use ParseJSON() within the main thread, the Roku has no issue with outputting the correct value.
// Example JSON string
{
"pin": "8RY2",
"pinKey": "2589b22c-240d-4a02-8a7f-8ddf2b273b73",
"expiry": 1484795032530, // This long value (13 numbers) is output as invalid when converting to an AA
"expired": false
}
// ParseJSON()
{
expired: false
expiry: invalid 'This should be the above value.
pin: "8RY2"
pinKey: "2589b22c-240d-4a02-8a7f-8ddf2b273b73"
}
I'm pretty sure this is not working as intended...
If I shorten the number by 4 digits, it quite happily parses.