{"action":"opened","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/3587","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3587/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3587/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3587/events","html_url":"https://github.com/CartoDB/cartodb/issues/3587","id":75161994,"number":3587,"title":"Establish Layer JSON field defaults","user":{"login":"Kartones","id":2085449,"avatar_url":"https://avatars.githubusercontent.com/u/2085449?v=3","gravatar_id":"","url":"https://api.github.com/users/Kartones","html_url":"https://github.com/Kartones","followers_url":"https://api.github.com/users/Kartones/followers","following_url":"https://api.github.com/users/Kartones/following{/other_user}","gists_url":"https://api.github.com/users/Kartones/gists{/gist_id}","starred_url":"https://api.github.com/users/Kartones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kartones/subscriptions","organizations_url":"https://api.github.com/users/Kartones/orgs","repos_url":"https://api.github.com/users/Kartones/repos","events_url":"https://api.github.com/users/Kartones/events{/privacy}","received_events_url":"https://api.github.com/users/Kartones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"},{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/backend-refactor","name":"backend-refactor","color":"fad8c7"},{"url":"https://api.github.com/repos/CartoDB/cartodb/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Kartones","id":2085449,"avatar_url":"https://avatars.githubusercontent.com/u/2085449?v=3","gravatar_id":"","url":"https://api.github.com/users/Kartones","html_url":"https://github.com/Kartones","followers_url":"https://api.github.com/users/Kartones/followers","following_url":"https://api.github.com/users/Kartones/following{/other_user}","gists_url":"https://api.github.com/users/Kartones/gists{/gist_id}","starred_url":"https://api.github.com/users/Kartones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kartones/subscriptions","organizations_url":"https://api.github.com/users/Kartones/orgs","repos_url":"https://api.github.com/users/Kartones/repos","events_url":"https://api.github.com/users/Kartones/events{/privacy}","received_events_url":"https://api.github.com/users/Kartones/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CartoDB/cartodb/milestones/39","html_url":"https://github.com/CartoDB/cartodb/milestones/Alcobendas","labels_url":"https://api.github.com/repos/CartoDB/cartodb/milestones/39/labels","id":1082976,"number":39,"title":"Alcobendas","description":"- [ ] BLT (@alonsogarciapablo)\r\n- [ ] Medusa v3 (@rochoa)\r\n- [ ] New modals (@vikingo, @xavijam)\r\n- [ ] GM Geocoder (@ratorre)\r\n- [ ] Kepler integrated (@alonsogarciapablo)\r\n- [ ] Explore API v2 (@zenitram)\r\n- [ ] Legends/embeds (@saleiva)","creator":{"login":"saleiva","id":132149,"avatar_url":"https://avatars.githubusercontent.com/u/132149?v=3","gravatar_id":"","url":"https://api.github.com/users/saleiva","html_url":"https://github.com/saleiva","followers_url":"https://api.github.com/users/saleiva/followers","following_url":"https://api.github.com/users/saleiva/following{/other_user}","gists_url":"https://api.github.com/users/saleiva/gists{/gist_id}","starred_url":"https://api.github.com/users/saleiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saleiva/subscriptions","organizations_url":"https://api.github.com/users/saleiva/orgs","repos_url":"https://api.github.com/users/saleiva/repos","events_url":"https://api.github.com/users/saleiva/events{/privacy}","received_events_url":"https://api.github.com/users/saleiva/received_events","type":"User","site_admin":false},"open_issues":44,"closed_issues":0,"state":"open","created_at":"2015-04-24T22:45:59Z","updated_at":"2015-05-11T10:03:20Z","due_on":"2015-05-27T22:00:00Z","closed_at":null},"comments":0,"created_at":"2015-05-11T10:03:20Z","updated_at":"2015-05-11T10:03:20Z","closed_at":null,"body":"While coding #3570 I found that layer fields `tooltip`, `options` and `infowindow` don't have default values but are parsed as json upon model loading. This generates errors on testing and is quite dangerous as relies on the Editor and/or parent classes to properly populate themselves.\r\n\r\nAdd default values (simply empty json) so it doesn't breaks"}}