json - Encoding large numbers with json_encode in php -
i have php script outputs json-encoded object large numbers (greater php_max_int) store numbers internally, have store them strings. however, need them shown un-quoted numbers client.
i've thought of several solutions, many of haven't worked. of ideas revolve around writing own json encoder, have done already, don't want take time change places have json_encode
instead my_json_encode
.
since have no control on server, cannot turn remove json library. cannot undeclare json_encode
, nor can rename it. there easy way handle this, or best option go through each , every file , rename method calls?
with javascript being loosely typed, why need control type in json data? doing number in javascript, , parseint\parsefloat
not able make leap string number on client side?
Comments
Post a Comment