I am working on web services in android,
i have three strings
String username = "Rajesh";
String password = "abc"
String usertype = "member";
and i want to send them to web service in the following form
{"UserName":username,"Password":password,"UserType":usertype}
like
{"UserName":"Rajesh","Password":"abc","UserType":"member"}
web service url is something like : http://abc.xyz.org/api/login
i dont have any idea how to do it, please help me,
how can i convert strings to json like above and how can i pass it to web service
Thank you