Skip to content Skip to sidebar Skip to footer

Reading Json Object Sent From Android In Php

Can I read a JSON Object in the PHP application when this object is sent by an android application? I don't know if I am allowed to use json_decode() in the easy php, here is the

Solution 1:

You're doing this:

httppost.setHeader("json", json.toString());

which sets a header, NOT a POST parameter. In your PHP, you want to do this:

$decoded = json_decode($_SERVER['HTTP_JSON'], true);

Post a Comment for "Reading Json Object Sent From Android In Php"