Home
last modified time | relevance | path

Searched refs:json_encode (Results 51 – 75 of 97) sorted by path

1234

/php-src/ext/json/tests/
H A Dinf_nan_error.phpt10 var_dump(json_encode($inf));
13 var_dump(json_encode($inf, JSON_PARTIAL_OUTPUT_ON_ERROR));
22 var_dump(json_encode($nan));
25 var_dump(json_encode($nan, JSON_PARTIAL_OUTPUT_ON_ERROR));
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 Djson_encode_basic_utf8.phpt2 Test json_encode() function : basic functionality with UTF8 string input
5 echo "*** Testing json_encode() : basic functionality with UTF-8 input***\n";
8 var_dump(json_encode($utf8_string));
12 *** Testing json_encode() : basic functionality with UTF-8 input***
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_invalid_utf8.phpt2 json_encode() invalid UTF8
6 var_dump(json_encode($str));
7 var_dump(json_encode($str, JSON_INVALID_UTF8_IGNORE));
8 var_dump(json_encode($str, JSON_INVALID_UTF8_SUBSTITUTE));
9 var_dump(json_encode($str, JSON_UNESCAPED_UNICODE));
10 var_dump(bin2hex(json_encode($str, JSON_UNESCAPED_UNICODE | JSON_INVALID_UTF8_SUBSTITUTE)));
H A Djson_encode_numeric.phpt2 Test json_encode() function with numeric flag
8 json_encode("1", JSON_NUMERIC_CHECK),
9 json_encode("9.4324", JSON_NUMERIC_CHECK),
10 json_encode(array("122321", "3232595.33423"), JSON_NUMERIC_CHECK),
11 json_encode("1"),
12 json_encode("9.4324"),
13 json_encode(array("122321", "3232595.33423"))
H A Djson_encode_pretty_print.phpt2 json_encode() with JSON_PRETTY_PRINT
7 $pretty = json_encode($struct, JSON_PRETTY_PRINT);
H A Djson_encode_pretty_print2.phpt2 json_encode() with JSON_PRETTY_PRINT on declared properties
17 echo json_encode(new HasNoProperties()), "\n";
18 echo json_encode(new HasNoProperties(), JSON_PRETTY_PRINT), "\n";
20 echo json_encode(new MyClass()), "\n";
21 echo json_encode(new MyClass(), JSON_PRETTY_PRINT), "\n";
24 echo json_encode($obj), "\n";
25 echo json_encode($obj, JSON_PRETTY_PRINT), "\n";
28 echo json_encode($obj), "\n";
29 echo json_encode($obj, JSON_PRETTY_PRINT), "\n";
31 echo json_encode($obj), "\n";
[all …]
H A Djson_encode_recursion_01.phpt2 json_encode() Recursion test with just JsonSerializable
16 $result = json_encode($this);
22 var_dump(json_encode(new SerializingTest()));
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_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 Djson_encode_recursion_04.phpt2 json_encode() Recursion test with JsonSerializable, __debugInfo and var_export
22 var_dump(json_encode(new SerializingTest()));
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 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_u2028_u2029.phpt2 json_encode() tests for U+2028, U+2029
5 var_dump(json_encode(array("a\xC3\xA1b")));
6 var_dump(json_encode(array("a\xC3\xA1b"), JSON_UNESCAPED_UNICODE));
7 var_dump(json_encode("a\xE2\x80\xA7b"));
8 var_dump(json_encode("a\xE2\x80\xA7b", JSON_UNESCAPED_UNICODE));
9 var_dump(json_encode("a\xE2\x80\xA8b"));
10 var_dump(json_encode("a\xE2\x80\xA8b", JSON_UNESCAPED_UNICODE));
13 var_dump(json_encode("a\xE2\x80\xA9b"));
14 var_dump(json_encode("a\xE2\x80\xA9b", JSON_UNESCAPED_UNICODE));
17 var_dump(json_encode("a\xE2\x80\xAAb"));
[all …]
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 Djson_exceptions_error_clearing.phpt32 json_encode(NAN, JSON_THROW_ON_ERROR);
H A Dpass001.1.phpt86 $obj_enc = json_encode($obj, JSON_PARTIAL_OUTPUT_ON_ERROR);
89 $arr_enc = json_encode($arr, JSON_PARTIAL_OUTPUT_ON_ERROR);
H A Dpass001.1_64bit.phpt90 $obj_enc = json_encode($obj, JSON_PARTIAL_OUTPUT_ON_ERROR);
93 $arr_enc = json_encode($arr, JSON_PARTIAL_OUTPUT_ON_ERROR);
H A Dpass001.phpt76 $obj_enc = json_encode($obj, JSON_PARTIAL_OUTPUT_ON_ERROR);
79 $arr_enc = json_encode($arr, JSON_PARTIAL_OUTPUT_ON_ERROR);
H A Dpass002.phpt16 $obj_enc = json_encode($obj);
19 $arr_enc = json_encode($arr);
H A Dpass003.phpt24 $obj_enc = json_encode($obj);
27 $arr_enc = json_encode($arr);
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 Dunsupported_type_error.phpt10 var_dump(json_encode($resource));
13 var_dump(json_encode($resource, JSON_PARTIAL_OUTPUT_ON_ERROR));
/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));

Completed in 81 milliseconds

1234