I use sf.json library to map form data for incoming request in my web application in java.
Lets say the incoming request is http://localhost:8080/app/addProfile with
Print the JSON object using:
Log.e("JSON OBJECT CREATED:", jsonobject.toString());
And then use a json validator online to validate the json.