Send POST request with JSON data using Volley
JsonObjectRequest actually accepts JSONObject as body. From this blog article, final String url = “some/url”; final JSONObject jsonBody = new JSONObject(“{\”type\”:\”example\”}”); new JsonObjectRequest(url, jsonBody, new Response.Listener<JSONObject>() { … }); Here is the source code and JavaDoc (@param jsonRequest): /** * Creates a new request. * @param method the HTTP method to use * @param url … Read more