Home
last modified time | relevance | path

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

1234

/php-src/ext/json/tests/
H A Djson_encode_exceptions.phpt2 Test json_encode() function : JSON_THROW_ON_ERROR flag
7 var_dump(json_encode("\x80", JSON_THROW_ON_ERROR));
15 var_dump(json_encode("\x80", JSON_THROW_ON_ERROR | JSON_PARTIAL_OUTPUT_ON_ERROR));
41 string(11) "json_encode"
H A Djson_encode_recursion_03.phpt2 json_encode() Recursion test with JsonSerializable and __debugInfo
12 return [ 'result' => json_encode($this) ];
22 var_dump(json_encode(new SerializingTest()));
H A D004.phpt2 json_encode() & endless loop - 2
13 var_dump(json_encode($a));
18 var_dump(json_encode($a, JSON_PARTIAL_OUTPUT_ON_ERROR));
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 Djson_encode_recursion_06.phpt2 json_encode() Recursion test with JsonSerializable and serialize
27 return [ 'result' => json_encode($this) ];
36 var_dump(json_encode(new JsonEncodeFirstTest()));
H A Djson_encode_unescaped_slashes.phpt5 var_dump(json_encode('a/b'));
6 var_dump(json_encode('a/b', JSON_UNESCAPED_SLASHES));
H A D005.phpt2 json_encode() & endless loop - 3
10 var_dump(json_encode($a));
H A Dbug41567.phpt2 Bug #41567 (json_encode() double conversion is inconsistent with PHP)
8 $a = json_encode(123456789.12345);
H A Dbug41034.phpt2 Bug #41034 (json_encode() ignores null byte started keys in arrays)
5 echo json_encode(array(0, "\0ab"=>1, "\0null-prefixed value"));
H A Djson_encode_basic.phpt2 Test json_encode() function : basic functionality
5 echo "*** Testing json_encode() : basic functionality ***\n";
75 // loop through with each element of the $inputs array to test json_encode() function
79 var_dump(json_encode($input));
85 *** Testing json_encode() : basic functionality ***
H A Dbug46215.phpt2 Bug #46215 (json_encode mutates its parameter and has some class-specific state)
11 $x = json_encode($a);
H A D009.phpt2 json_encode() with non-packed array that should be encoded as an array rather than object
8 var_dump(json_encode($a));
H A Djson_encode_recursion_02.phpt2 json_encode() Recursion test with JsonSerializable and var_dump simple
17 var_dump(json_encode(new SerializingTest()));
H A Djson_encode_pretty_print.phpt2 json_encode() with JSON_PRETTY_PRINT
7 $pretty = json_encode($struct, JSON_PRETTY_PRINT);
H A Dserialize.phpt2 json_encode() Serialization tests
58 echo json_encode(new $class($adata)), "\n";
59 echo json_encode(new $class($ndata)), "\n";
60 echo json_encode(new $class($odata)), "\n";
H A Dbug41067.phpt2 Bug #41067 (json_encode() problem with UTF-16 input)
9 $json = json_encode($array);
H A Djson_encode_recursion_05.phpt2 json_encode() Recursion test with JsonSerializable, __debugInfo and print_r
22 var_dump(json_encode(new SerializingTest()));
H A Dunsupported_type_error.phpt10 var_dump(json_encode($resource));
13 var_dump(json_encode($resource, JSON_PARTIAL_OUTPUT_ON_ERROR));
H A Dbug68992.phpt2 Bug #68992 (json_encode stacks exceptions thrown by JsonSerializable classes)
17 json_encode($classes);
/php-src/.github/
H A Dnightly_matrix.php33 file_put_contents($branch_commit_cache_file, json_encode($branch_commit_map));
150 fwrite($f, 'branches=' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n");
151 fwrite($f, 'matrix-include=' . json_encode($matrix_include, JSON_UNESCAPED_SLASHES) . "\n");
152 fwrite($f, 'windows-matrix-include=' . json_encode($windows_matrix_include, JSON_UNESCAPED_SLASHES)…
153 fwrite($f, 'macos-matrix-include=' . json_encode($macos_matrix_include, JSON_UNESCAPED_SLASHES) . "…
/php-src/ext/opcache/tests/jit/
H A Dgh11917.phpt9 echo crc32(json_encode(bitwise_small_split($a))) . "\n";
10 echo crc32(json_encode(bitwise_small_split($a))) . "\n";
11 echo crc32(json_encode(bitwise_small_split($a))) . "\n";
12 echo crc32(json_encode(bitwise_small_split($a))) . "\n";
/php-src/ext/spl/tests/
H A Dgh10519.phpt51 var_dump(json_encode($example));
52 var_dump(json_encode($a));
62 var_dump(json_encode($example));
63 var_dump(json_encode($b));
/php-src/Zend/tests/function_arguments/
H A Dsensitive_parameter_value.phpt18 echo "# (array) / json_encode()", PHP_EOL;
20 var_dump(json_encode($v));
41 # (array) / json_encode()
/php-src/ext/mysqli/tests/
H A Dbug70384.phpt51 if (json_encode($rows[0][0]) != json_encode($jsfield_data)) {
53 var_dump(json_encode($rows[0][0]) != json_encode($jsfield_data));
/php-src/Zend/tests/enum/
H A Djson_encode.phpt2 Enum in json_encode
27 var_dump(json_encode($value));
35 var_dump(json_encode($value, JSON_THROW_ON_ERROR));

Completed in 33 milliseconds

1234