added support for making requests with URL params passed via JSON