PHP json_decode integers and floats to string
Use JSON_BIGINT_AS_STRING
option:
json_decode($jsonString, false, 512, JSON_BIGINT_AS_STRING)
Use this: It should work
echo preg_replace('/\: *([0-9]+\.?[0-9e+\-]*)/', ':"\\1"', $jsonString);
Use JSON_BIGINT_AS_STRING
option:
json_decode($jsonString, false, 512, JSON_BIGINT_AS_STRING)
Use this: It should work
echo preg_replace('/\: *([0-9]+\.?[0-9e+\-]*)/', ':"\\1"', $jsonString);