This isn\'t a question as it is more of a be aware. I updated an application that uses json_encode() to PHP7.1.1 and I was seeing an issue with floats being cha
json_encode()
I solved this by setting both precision and serialize_precision to the same value (10):
ini_set('precision', 10); ini_set('serialize_precision', 10);
You can also set this in your php.ini