Answers for "json decode online php"

PHP
19

php json_decode

$personJSON = '{"name":"Johny Carson","title":"CTO"}';

$person = json_decode($personJSON);

echo $person->name; // Johny Carson
Posted by: Guest on July-01-2019
7

php decode json file

$json = json_decode(file_get_contents('/path/to/your/file.json'));
Posted by: Guest on March-15-2020
0

none

$json = json_decode(file_get_contents('/path/to/your/file.json'));
Posted by: Guest on March-15-2020

Browse Popular Code Answers by Language