Skip to content

Commit ee0c7f5

Browse files
authored
Solve problem
1 parent 653e334 commit ee0c7f5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

decode-json.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// JSON
99
$token='eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdGF0dXMiOiJzdWNjZXNzIiwiZGF0YTEiOiJ0ZXN0MSIsImRhdGEyIjoidGVzdDIiLCJkYXRhMyI6InRlc3QzIiwiZGF0YTQiOiJ0ZXN0NCIsImRhdGE1IjoidGVzdDUifQ.nOa6tq6bDCiURP2GpTehux3geHiNiqQKJXaZ0M_uJ0WD0yTmKM66LS23fCAMraem58HWnmlX4V4WB7-eTfFpbQ';
1010
$decode = JWT::decode($token, $key, array('HS512'));
11-
print $decode."\n";
12-
$object=json_decode($decode);
13-
print_r($object);
11+
print_r($decode);
12+
// print $decode."\n";
13+
//$object=json_decode($decode);
14+
//print_r($object);
1415
print "\n";

0 commit comments

Comments
 (0)