For any application(mobile app) usually get data from back end. And if backend is developed using PHP(may be framework) then sample API response will be like following.
You can see that json response contains “null” in some place.. So parsing from Iphone/Android application got crashed.
simple and effective solution for this is use str_replace PHP function and replace “null” with “”.
$a = json_string;
$b = str_replace(“null”,’ “” ‘,$a);
so the value of $b looks like following.
Its looking very simple but its very useful tips.