$json_string
=
'{"id":1,"name":"foo","email":"foo@foobar.com","interest":["wordpress","php"]} '
;
$obj
=json_decode(
);
echo
->name;
//prints foo
->interest[1];
//prints php