array(2) {
["foo"]=>
float(3)
["bar"]=>
float(3.1)
}
string(19) "{"foo":3,"bar":3.1}"
Notice: Use of undefined constant JSON_PRESERVE_ZERO_FRACTION - assumed 'JSON_PRESERVE_ZERO_FRACTION' in /in/GFGRr on line 7
Warning: json_encode() expects parameter 2 to be long, string given in /in/GFGRr on line 7
NULL