OkHttp Post Body as JSON
问题 So, back when I was using Koush\'s Ion, I was able to add a json body to my posts with a simple .setJsonObjectBody(json).asJsonObject() I\'m moving over to OkHttp, and I really don\'t see a good way to do that. I\'m getting error 400\'s all over the place. Anyone have any ideas? I\'ve even tried manually formatting it as a json string. String reason = menuItem.getTitle().toString(); JsonObject json = new JsonObject(); json.addProperty(\"Reason\", reason); String url = mBaseUrl + \"/\" + id +