send JSON to server via HTTP put request in android
问题 How to wrap given json to string and send it to server via Http put request in android? This is how my json look like. { "version": "1.0.0", "datastreams": [ { "id": "example", "current_value": "333" }, { "id": "key", "current_value": "value" }, { "id": "datastream", "current_value": "1337" } ] } above is my json array. below is how I wrote the code but, its not working protected String doInBackground(Void... params) { String text = null; try { JSONObject child1 = new JSONObject(); try{