{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-views/issues/50","repository_url":"https://api.github.com/repos/grails/grails-views","labels_url":"https://api.github.com/repos/grails/grails-views/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-views/issues/50/comments","events_url":"https://api.github.com/repos/grails/grails-views/issues/50/events","html_url":"https://github.com/grails/grails-views/issues/50","id":159112095,"number":50,"title":"Marshaller for objects with a property of class Map","user":{"login":"jromero-onclick","id":7490686,"avatar_url":"https://avatars.githubusercontent.com/u/7490686?v=3","gravatar_id":"","url":"https://api.github.com/users/jromero-onclick","html_url":"https://github.com/jromero-onclick","followers_url":"https://api.github.com/users/jromero-onclick/followers","following_url":"https://api.github.com/users/jromero-onclick/following{/other_user}","gists_url":"https://api.github.com/users/jromero-onclick/gists{/gist_id}","starred_url":"https://api.github.com/users/jromero-onclick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jromero-onclick/subscriptions","organizations_url":"https://api.github.com/users/jromero-onclick/orgs","repos_url":"https://api.github.com/users/jromero-onclick/repos","events_url":"https://api.github.com/users/jromero-onclick/events{/privacy}","received_events_url":"https://api.github.com/users/jromero-onclick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-08T08:56:09Z","updated_at":"2016-06-08T11:42:58Z","closed_at":null,"body":"I have this domain:\r\n\r\n```java\r\nclass Activity implements Comparable<Activity> {\r\n\r\n    static constraints = {\r\n        name(blank: false, unique: ['activityLevel3'])\r\n        description(blank: true, maxSize: 500)\r\n        activityLevel3(nullable: false)\r\n        position(nullable: false)\r\n    }\r\n\r\n    String name\r\n    String description\r\n    ActivityLevel3 activityLevel3\r\n    Integer position\r\n    Map attributes\r\n\r\n    static belongsTo = [activityLevel3: ActivityLevel3]\r\n    static hasMany = [attributes: ActivityAttribute]\r\n\r\n    int compareTo(Activity obj) {\r\n        position.compareTo(obj.position)\r\n    }\r\n}\r\n```\r\n\r\nAnd a rest controller for it:\r\n\r\n```java\r\nclass ActivityController extends RestfulController {\r\n    static responseFormats = ['json']\r\n\r\n    ActivityController() {\r\n        super(Activity)\r\n    }\r\n}\r\n```\r\n\r\nWhen I try to get the list (/activity) or to show an activity (/activity/show/1) I get this error:\r\n\r\n{\"id\":1,\"activityLevel3\":{\"id\":1},\"attributes\":\r\n....\r\n<h1>Error 500: Internal Server Error</h1>\r\n                <dl class=\"error-details\">\r\n                    <dt>URI</dt>\r\n                    <dd>/activity/show/1</dd>\r\n                    <dt>Class</dt>\r\n                    <dd>org.grails.web.json.JSONException</dd>\r\n                    <dt>Message</dt>\r\n                    <dd>null</dd>\r\n                    <dt>Caused by</dt>\r\n                    <dd>Misplaced key: expected mode of KEY but was OBJECT</dd>\r\n                </dl>\r\n"},"comment":{"url":"https://api.github.com/repos/grails/grails-views/issues/comments/224565028","html_url":"https://github.com/grails/grails-views/issues/50#issuecomment-224565028","issue_url":"https://api.github.com/repos/grails/grails-views/issues/50","id":224565028,"user":{"login":"jromero-onclick","id":7490686,"avatar_url":"https://avatars.githubusercontent.com/u/7490686?v=3","gravatar_id":"","url":"https://api.github.com/users/jromero-onclick","html_url":"https://github.com/jromero-onclick","followers_url":"https://api.github.com/users/jromero-onclick/followers","following_url":"https://api.github.com/users/jromero-onclick/following{/other_user}","gists_url":"https://api.github.com/users/jromero-onclick/gists{/gist_id}","starred_url":"https://api.github.com/users/jromero-onclick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jromero-onclick/subscriptions","organizations_url":"https://api.github.com/users/jromero-onclick/orgs","repos_url":"https://api.github.com/users/jromero-onclick/repos","events_url":"https://api.github.com/users/jromero-onclick/events{/privacy}","received_events_url":"https://api.github.com/users/jromero-onclick/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T11:42:58Z","updated_at":"2016-06-08T11:42:58Z","body":"ActivityController is a restful controller. How I have to generate views for it?"}}
{"actor":{"display_login":"jromero-onclick"}}