Our PHP API outputs results using json_encode with JSON_NUMERIC_CHECK enabled, which is important for financial figures, binary values etc.. but we have recently introduced
works for me :
// $DATAS -> datas returned by the server
$DATAS = array(
array('tel' => '0606060606'),
array('tel' => '0707070707')
);
foreach($DATAS as $k => $v){
$tel = " ".$v['tel']." "; // ADD WHITE SPACE
$DATAS[$k]['tel'] = $tel;
}
echo json_encode($DATAS, JSON_NUMERIC_CHECK);
// output : [{"tel":" 0606060606 "},{"tel":" 0707070707 "}]
Maybe define css white space or trim datas in the json encoded for obtain the perfect parsed number