Home
last modified time | relevance | path

Searched refs:json_encode (Results 26 – 50 of 97) sorted by path

1234

/php-src/ext/json/tests/
H A Dbug41067.phpt2 Bug #41067 (json_encode() problem with UTF-16 input)
9 $json = json_encode($array);
H A Dbug41567.phpt2 Bug #41567 (json_encode() double conversion is inconsistent with PHP)
8 $a = json_encode(123456789.12345);
H A Dbug42090.phpt10 json_encode('"'),
11 json_decode(json_encode('"')),
12 json_decode(json_encode('""'))
H A Dbug42785.phpt16 var_dump(json_encode($foo));
21 var_dump(json_encode($bar1));
H A Dbug43941.phpt2 Bug #43941 (json_encode() invalid UTF-8)
6 var_dump(json_encode("abc"));
7 var_dump(json_encode("ab\xE0"));
8 var_dump(json_encode("ab\xE0", JSON_PARTIAL_OUTPUT_ON_ERROR));
9 var_dump(json_encode(array("ab\xE0", "ab\xE0c", "abc"), JSON_PARTIAL_OUTPUT_ON_ERROR));
H A Dbug46215.phpt2 Bug #46215 (json_encode mutates its parameter and has some class-specific state)
11 $x = json_encode($a);
H A Dbug46944.phpt2 Bug #46944 (json_encode() doesn't handle 3 byte utf8 correctly)
10 echo json_encode($string) . "\n";
H A Dbug50224.phpt2 bug #50224 (json_encode() does not always encode a float as a float)
8 var_dump(json_encode(12.3, JSON_PRESERVE_ZERO_FRACTION));
9 var_dump(json_encode(12, JSON_PRESERVE_ZERO_FRACTION));
10 var_dump(json_encode(12.0, JSON_PRESERVE_ZERO_FRACTION));
11 var_dump(json_encode(0.0, JSON_PRESERVE_ZERO_FRACTION));
12 var_dump(json_encode(array(12, 12.0, 12.3), JSON_PRESERVE_ZERO_FRACTION));
17 var_dump(json_decode(json_encode(12.3, JSON_PRESERVE_ZERO_FRACTION)));
18 var_dump(json_decode(json_encode(12, JSON_PRESERVE_ZERO_FRACTION)));
19 var_dump(json_decode(json_encode(12.0, JSON_PRESERVE_ZERO_FRACTION)));
20 var_dump(json_decode(json_encode(0.0, JSON_PRESERVE_ZERO_FRACTION)));
[all …]
H A Dbug53946.phpt2 bug #53946 (json_encode() with JSON_UNESCAPED_UNICODE)
5 var_dump(json_encode("latin 1234 -/ russian мама мыла раму specialchars \x02 \x08 \n U+1D11…
6 var_dump(json_encode("latin 1234 -/ russian мама мыла раму specialchars \x02 \x08 \n U+1D11…
7 var_dump(json_encode("ab\xE0"));
8 var_dump(json_encode("ab\xE0", JSON_UNESCAPED_UNICODE));
H A Dbug54058.phpt8 json_encode($bad_utf8);
13 json_encode($a);
19 json_encode($b);
26 json_encode($c);
H A Dbug55543.phpt2 Bug #55543 (json_encode() with JSON_NUMERIC_CHECK & numeric string properties)
8 var_dump(json_encode($a, JSON_NUMERIC_CHECK));
H A Dbug61537.phpt2 Bug #61537 (json_encode() incorrectly truncates/discards information)
7 var_dump(json_encode($invalid_utf8));
10 var_dump(json_encode($invalid_utf8, JSON_PARTIAL_OUTPUT_ON_ERROR));
17 var_dump(json_encode($invalid_utf8));
20 var_dump(json_encode($invalid_utf8, JSON_PARTIAL_OUTPUT_ON_ERROR));
H A Dbug61978.phpt30 var_dump(json_encode($obj1, JSON_PARTIAL_OUTPUT_ON_ERROR));
35 var_dump(json_encode($obj2, JSON_PARTIAL_OUTPUT_ON_ERROR));
H A Dbug62369.phpt2 FR #62369 (Segfault on json_encode(deeply_nested_array)
11 json_encode($array, 0, 551);
21 json_encode($array, 0, 540);
H A Dbug64695.phpt6 var_dump(json_encode($t, JSON_NUMERIC_CHECK));
H A Dbug66021.phpt10 echo json_encode(array(array(), (object) array(), new Foo), JSON_PRETTY_PRINT);
H A Dbug66025.phpt2 Bug #66025 (Indent wrong when json_encode() called from jsonSerialize function)
8 return json_encode([1], JSON_PRETTY_PRINT);
12 echo json_encode([new Foo]), "\n";
H A Dbug68567.phpt6 var_dump(json_encode(array("\x80" => 1), JSON_PARTIAL_OUTPUT_ON_ERROR));
H A Dbug68992.phpt2 Bug #68992 (json_encode stacks exceptions thrown by JsonSerializable classes)
17 json_encode($classes);
H A Dbug71835.phpt2 Bug #71835 (json_encode sometimes incorrectly detects recursion with JsonSerializable)
12 var_dump(json_encode($arr));
21 var_dump(json_encode($arr));
H A Dbug72069.phpt2 Bug #72069 (Behavior \JsonSerializable different from json_encode)
6 $result = json_encode(['end' => json_decode('', true)]);
18 $result = json_encode($a);
21 $result = json_encode($toJsonData);
H A Dbug73113.phpt17 echo json_encode($obj);
H A Dbug73254.phpt2 Bug #73254 (Incorrect indentation generated by json_encode() with JSON_PRETTY_PRINT)
6 echo json_encode([json_encode([1], JSON_PRETTY_PRINT)]), "\n";
10 echo json_encode($data), "\n";
11 echo json_encode([json_encode([1], JSON_PRETTY_PRINT)]), "\n";
H A Dbug77843.phpt17 var_dump(json_encode([&$arr]));
H A Dbug81532.phpt2 Bug #81532: Change of $depth behaviour in json_encode() on PHP 8.1
17 var_export(json_encode($a, 0, 0)); echo "\n";
18 var_export(json_encode($a, 0, 1)); echo "\n";
19 var_export(json_encode($b, 0, 1)); echo "\n";
20 var_export(json_encode($b, 0, 2)); echo "\n";
21 var_export(json_encode($c, 0, 2)); echo "\n";
22 var_export(json_encode($c, 0, 3)); echo "\n";

Completed in 29 milliseconds

1234