1<?php
2
3$json = '{"firstName":"Peter","lastName:":"Silva","age":23}';
4
5$personInfo = json_decode(json);
6
7echo $personInfo->age;
8
9?>
1//"[{\"name\": \"bill\", \"score\": 0.7948127388954163}, {\"name\": \"john\", \"score\": 0.782698392868042}]";
2//for json in above format try this
3$r=json_decode(stripcslashes(trim($response,'"')));