I want to decode json string in Php that is pass from android.
Suppose i have follwing json that comes from android
{"name":"ajay"}
and in php i do
<?php
$result=json_decode('$_POST',true);
$name=$result['name'];
$response=array();
$response["message"]=$name successfully parse in php;
echo json_encode($response);
?>
This gives html tag in response.Is there is any way to solve this?