I am trying to parse a string in JSON, but not sure how to go about this. This is an example of the string I am trying to parse into a PHP array.
$json = \'{
Try json_decode:
$array = json_decode('{"id":1,"name":"foo","email":"foo@test.com"}', true); //$array['id'] == 1 //$array['name'] == "foo" //$array['email'] == "foo@test.com"