{"action":"created","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/1826","repository_url":"https://api.github.com/repos/square/retrofit","labels_url":"https://api.github.com/repos/square/retrofit/issues/1826/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/1826/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/1826/events","html_url":"https://github.com/square/retrofit/issues/1826","id":157625864,"number":1826,"title":"how can i do with Retrofit like     httpPost.setEntity(params);","user":{"login":"zlm54585652","id":12488354,"avatar_url":"https://avatars.githubusercontent.com/u/12488354?v=3","gravatar_id":"","url":"https://api.github.com/users/zlm54585652","html_url":"https://github.com/zlm54585652","followers_url":"https://api.github.com/users/zlm54585652/followers","following_url":"https://api.github.com/users/zlm54585652/following{/other_user}","gists_url":"https://api.github.com/users/zlm54585652/gists{/gist_id}","starred_url":"https://api.github.com/users/zlm54585652/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlm54585652/subscriptions","organizations_url":"https://api.github.com/users/zlm54585652/orgs","repos_url":"https://api.github.com/users/zlm54585652/repos","events_url":"https://api.github.com/users/zlm54585652/events{/privacy}","received_events_url":"https://api.github.com/users/zlm54585652/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-31T09:19:16Z","updated_at":"2016-05-31T18:59:33Z","closed_at":"2016-05-31T18:59:33Z","body":"`DefaultHttpClient httpClient = new DefaultHttpClient();\r\n\r\n        String url = \"https://abc.123.com/app/channellist\";\r\n\r\n        HttpPost httpPost = new HttpPost(url);\r\n\r\n        StringEntity params = new StringEntity(\"{\\\"records\\\":10, \\\"pnum\\\":1, \\\"ofield\\\": \\\"ctime\\\", \\\"sort\\\": 1}\");\r\n\r\n        httpPost.setEntity(params);\r\n\r\n        HttpResponse response = httpClient.execute(httpPost);`\r\n\r\nI use @Body String json  @Body RequestBody but not work\r\n"},"comment":{"url":"https://api.github.com/repos/square/retrofit/issues/comments/222786666","html_url":"https://github.com/square/retrofit/issues/1826#issuecomment-222786666","issue_url":"https://api.github.com/repos/square/retrofit/issues/1826","id":222786666,"user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T18:59:33Z","updated_at":"2016-05-31T18:59:33Z","body":"`@Body String` will work if you install the 'scalars-converter'. You can also create a Java model object which represents the JSON and use a converter (like the Gson one) to automatically serialize it. Otherwise `@Body RequestBody` lets you specify raw request data and will allow any format.\r\n\r\nIf something is not working in Retrofit, please provide an executable test case that demonstrates the problem along with the expected result so that we can reproduce it and see exactly what you think should be happening."}}
{"actor":{"display_login":"JakeWharton"}}