<?php
$rawJson = '{"response":1,"counts People":1849}';
$jsonObj = json_decode($rawJson);
$jsonArray = json_decode($rawJson, true);
var_dump($jsonObj, $jsonArray);
var_dump($jsonObj->{'counts People'});
var_dump($jsonArray['counts People']);
object(stdClass)#1 (2) {
["response"]=>
int(1)
["counts People"]=>
int(1849)
}
array(2) {
["response"]=>
int(1)
["counts People"]=>
int(1849)
}
int(1849)
int(1849)