im calling twitter mashup service. When I get json data, some of the twit identifiers are greater than 2147483647 (which is the maximum allowable integer on 32 bit servers).
I came up with a solution that works that converts integers to strings; thus, the json_decode () function will not have problems when trying to generate an array.
This is what I need to achieve:
To (JSON source data)
[{"name":"john","id":5932725006},{"name":"max","id":4953467146}]
After (solution applied)
[{"name":"john","id":"5932725006"},{"name":"max","id":"4953467146"}]
I am thinking about implementing preg_match, but I have no idea how to make this bulletproof. Any help would be greatly appreciated.
json php 32-bit
andufo
source share