While trying to parse json string to android, HTML values are passed. Before a day all was working good, and suddenly my app start crashing when trying to fetch database wit
I should add the following as answer as it is the workaround to bypass the above problem. Posting as it might help someone:
This problem can be solved by simply writing exit(); in the php file at the last executable statement. This will exit the php file and will not append the text. eg.
$id, 'stkcode'=>$stkcode, 'stkname'=>$comName, 'operatorid'=>$operatorid, 'password'=>$password);
}
$response['stokist'] = $posts;
print(json_encode($response));
exit();
?>