PHP JSON_ENCODE FLOAT

#Configure php.ini with
serialize_precision = -1
#or in php code
if (version_compare(phpversion(), '7.1', '>=')) {
	ini_set('serialize_precision', -1);
}  
Matteoweb