Having a big problem with json_encode it automatically round off the digits but I need 2 decimal points on every digits.
PHP:
Sounds like you are looking for JSON_PRESERVE_ZERO_FRACTION, available in PHP 5.6.6. Prior versions, you'll need to either convert to string or suck it up and accept that floats and integers are equivalent when there's no fractional value.
$numbers = [1.00,2.00];
echo $res = json_encode($numbers,JSON_PRESERVE_ZERO_FRACTION);