<?php $data = array('foo' => 3.0, 'bar' => 3.1); echo json_encode($data, JSON_PRESERVE_ZERO_FRACTION);
You have javascript disabled. You will not be able to edit any code.