Accept HTTP 204 JSON response

A HTTP 204 JSON response is considered a failure which is incorrect. This pull request returns an empty JSONObject if the response is a 204.