I am writing restful web services and everything is fine, my web services are takes input as XML and producing output as XML. For the client testing of web service, I am using the Firefox Poster extension. It is working fine but a few of my web services take input as a JSON object and produce output as a JSON object. My question is how to pass a JSON object to poster instead of XML. Or maybe a different extension can be used for client testing of restful web services producing JSON objects.
For example, one of my web services looks like this:
public String authenticateUser(@FormParam("userName") String userName, @FormParam("password") String password)
{
//related stuffs
}
How to test authenticateUser
web service using Poster extension or something else?