Lines Matching refs:json_encode
2 bug #50224 (json_encode() does not always encode a float as a float)
10 var_dump(json_encode(12.3, JSON_PRESERVE_ZERO_FRACTION));
11 var_dump(json_encode(12, JSON_PRESERVE_ZERO_FRACTION));
12 var_dump(json_encode(12.0, JSON_PRESERVE_ZERO_FRACTION));
13 var_dump(json_encode(0.0, JSON_PRESERVE_ZERO_FRACTION));
14 var_dump(json_encode(array(12, 12.0, 12.3), JSON_PRESERVE_ZERO_FRACTION));
15 var_dump(json_encode((object)array('float' => 12.0, 'integer' => 12), JSON_PRESERVE_ZERO_FRACTION));
19 var_dump(json_decode(json_encode(12.3, JSON_PRESERVE_ZERO_FRACTION)));
20 var_dump(json_decode(json_encode(12, JSON_PRESERVE_ZERO_FRACTION)));
21 var_dump(json_decode(json_encode(12.0, JSON_PRESERVE_ZERO_FRACTION)));
22 var_dump(json_decode(json_encode(0.0, JSON_PRESERVE_ZERO_FRACTION)));
23 var_dump(json_decode(json_encode(array(12, 12.0, 12.3), JSON_PRESERVE_ZERO_FRACTION)));
24 var_dump(json_decode(json_encode((object)array('float' => 12.0, 'integer' => 12), JSON_PRESERVE_ZER…
25 var_dump(json_decode(json_encode((object)array('float' => 12.0, 'integer' => 12), JSON_PRESERVE_ZER…