{"action":"opened","issue":{"url":"https://api.github.com/repos/faogustavo/JSONApi/issues/8","repository_url":"https://api.github.com/repos/faogustavo/JSONApi","labels_url":"https://api.github.com/repos/faogustavo/JSONApi/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/faogustavo/JSONApi/issues/8/comments","events_url":"https://api.github.com/repos/faogustavo/JSONApi/issues/8/events","html_url":"https://github.com/faogustavo/JSONApi/issues/8","id":166352428,"number":8,"title":"Nested objects not working","user":{"login":"ericn37","id":19919208,"avatar_url":"https://avatars.githubusercontent.com/u/19919208?v=3","gravatar_id":"","url":"https://api.github.com/users/ericn37","html_url":"https://github.com/ericn37","followers_url":"https://api.github.com/users/ericn37/followers","following_url":"https://api.github.com/users/ericn37/following{/other_user}","gists_url":"https://api.github.com/users/ericn37/gists{/gist_id}","starred_url":"https://api.github.com/users/ericn37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericn37/subscriptions","organizations_url":"https://api.github.com/users/ericn37/orgs","repos_url":"https://api.github.com/users/ericn37/repos","events_url":"https://api.github.com/users/ericn37/events{/privacy}","received_events_url":"https://api.github.com/users/ericn37/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-19T14:54:45Z","updated_at":"2016-07-19T14:54:45Z","closed_at":null,"body":"I have a model called Category. A category can have a list child categories nested **children** attribute. However, I'm getting an empty list at the moment:  \r\n**Category.java**\r\n```java\r\n@Type(\"categories\")\r\npublic class Category extends Resource {\r\n    @SerializedName(\"slug_url\")\r\n    @Expose\r\n    private String slugUrl;\r\n    @SerializedName(\"label\")\r\n    @Expose\r\n    private String label;\r\n    @SerializedName(\"children\")\r\n    private JSONList<Category> children = new JSONList<>();\r\n\r\n    /**\r\n     * @return The slugUrl\r\n     */\r\n    public String getSlugUrl() {\r\n        return slugUrl;\r\n    }\r\n\r\n    /**\r\n     * @param slugUrl The slug_url\r\n     */\r\n    public void setSlugUrl(String slugUrl) {\r\n        this.slugUrl = slugUrl;\r\n    }\r\n\r\n    /**\r\n     * @return The label\r\n     */\r\n    public String getLabel() {\r\n        return label;\r\n    }\r\n\r\n    /**\r\n     * @param label The label\r\n     */\r\n    public void setLabel(String label) {\r\n        this.label = label;\r\n    }\r\n\r\n    /**\r\n     * @return The children\r\n     */\r\n    public JSONList<Category> getChildren() {\r\n        return children;\r\n    }\r\n\r\n    /**\r\n     * @param children The children\r\n     */\r\n    public void setChildren(JSONList<Category> children) {\r\n        this.children = children;\r\n    }\r\n\r\n    @Override\r\n    public String toString() {\r\n        return label;\r\n    }\r\n}\r\n```\r\nYes, I'm using Retrofit by the way.\r\nThe JSON response is as follows:\r\n![screen shot 2016-07-19 at 10 53 54 pm](https://cloud.githubusercontent.com/assets/19919208/16954529/c2cb1b04-4e03-11e6-8aa8-1f588114ff3a.png)\r\n"}}
{"actor":{"display_login":"ericn37"}}