{"action":"created","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/1525","labels_url":"https://api.github.com/repos/square/retrofit/issues/1525/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/1525/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/1525/events","html_url":"https://github.com/square/retrofit/issues/1525","id":128523027,"number":1525,"title":"data-urlencode problem","user":{"login":"damianMolinski","id":12632971,"avatar_url":"https://avatars.githubusercontent.com/u/12632971?v=3","gravatar_id":"","url":"https://api.github.com/users/damianMolinski","html_url":"https://github.com/damianMolinski","followers_url":"https://api.github.com/users/damianMolinski/followers","following_url":"https://api.github.com/users/damianMolinski/following{/other_user}","gists_url":"https://api.github.com/users/damianMolinski/gists{/gist_id}","starred_url":"https://api.github.com/users/damianMolinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianMolinski/subscriptions","organizations_url":"https://api.github.com/users/damianMolinski/orgs","repos_url":"https://api.github.com/users/damianMolinski/repos","events_url":"https://api.github.com/users/damianMolinski/events{/privacy}","received_events_url":"https://api.github.com/users/damianMolinski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-25T12:07:42Z","updated_at":"2016-01-29T02:24:04Z","closed_at":null,"body":"I'm using Parse cloud to store data for my android aplication and when i want to get data from table for certain column value Parse suggesting a following cURL request [for given UserID]:\r\n\r\ncurl -X GET \\\r\n-H \"X-Parse-Application-Id: Value1\" \\\r\n-H \"X-Parse-REST-API-Key: Value2\" \\\r\n-G \\\r\n--data-urlencode \"where={\\\"UserID\\\":\\\"xxx\\\"}\" \\\r\nhttps://api.parse.com/1/classes/Photo\r\n\r\nMy question is how do i pass 'where' json data to request ?\r\n\r\nPS. Get for all values\r\n@GET(\"classes/Photo\")\r\nCall<PhotoList> getPhotos();"},"comment":{"url":"https://api.github.com/repos/square/retrofit/issues/comments/176529244","html_url":"https://github.com/square/retrofit/issues/1525#issuecomment-176529244","issue_url":"https://api.github.com/repos/square/retrofit/issues/1525","id":176529244,"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-01-29T02:24:04Z","updated_at":"2016-01-29T02:24:04Z","body":"You can add parameters to your method annotated with `@Query` for query params. In this case, you would use `@Query(\"where\")` and pass the JSON value as the argument.\r\n\r\nRetrofit doesn't have anything for automatically converting the value of a `@Query` parameter to JSON, because it's extremely rare to use JSON here. That said, Retrofit offers something called a \"string converter\" which allows you to create something that will do the JSON converter (using something like Gson) automatically. I realize this is a bit more advanced, so I'll create a sample for this tonight."}}