json icon indicating copy to clipboard operation
json copied to clipboard

Problem with big int

Open piotrooo opened this issue 8 years ago • 1 comments

Following code:

$json = '{"int_overflow":9223372036854775807}';
$decoder = new JsonDecoder();
$decode = $decoder->decode($json);

Throws exception: json_decode(): integer overflow detected. This should be translate from a big int to the string value.

piotrooo avatar Jan 11 '17 09:01 piotrooo

It looks like it's the big integer issue. I think we can convert this big integer to the string and it will not happen this issue.

peter279k avatar Nov 11 '18 08:11 peter279k