Answers for "accessing json_decode()"

PHP
18

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
0

json_decode jquery

var obj = jQuery.parseJSON( '{ "name": "John" }' );
alert( obj.name === "John" );
Posted by: Guest on December-22-2020

Browse Popular Code Answers by Language