I'm trying to read this in Objective-C but I keep getting errors.
When I run the json through a validator it tells me it is ok. But json_decode gets a null value.
What am I missing?
$arrTest = array("key" => "This is a string");
echo json_encode($arrTest);
$ob = json_decode($arrTest);
if ($ob === NULL) {
print "\nDang it";
}
$arrTestis an array, not a string. You can't decode an array.