I'm new to php. Can someone please guide me. I developing an app for blackberry. I want to send a boolean parameter from my php to java as a response to my java class's request. And then get that parameter at java side. How can I do that? Please help. Thanks in advance.
1 Answer
Simply print your response as json.
$myvalue = array();
$myvalue['status'] = 0;
$jsonEncodedvalue = json_encode($myvalue);
print_r($jsonEncodedvalue);
2 Comments
nikita sharma
Thanks for your response Dino Babu. Just one more thing. How can I get this value at java side ?
Dino Babu
i m not much aware of java. this may help you : stackoverflow.com/questions/1927885/decode-json-data-in-java