{"action":"opened","issue":{"url":"https://api.github.com/repos/Mantle/Mantle/issues/653","labels_url":"https://api.github.com/repos/Mantle/Mantle/issues/653/labels{/name}","comments_url":"https://api.github.com/repos/Mantle/Mantle/issues/653/comments","events_url":"https://api.github.com/repos/Mantle/Mantle/issues/653/events","html_url":"https://github.com/Mantle/Mantle/issues/653","id":120154366,"number":653,"title":"Is it possible to have two JSON representations for the same model?","user":{"login":"TiagoVeloso","id":450923,"avatar_url":"https://avatars.githubusercontent.com/u/450923?v=3","gravatar_id":"","url":"https://api.github.com/users/TiagoVeloso","html_url":"https://github.com/TiagoVeloso","followers_url":"https://api.github.com/users/TiagoVeloso/followers","following_url":"https://api.github.com/users/TiagoVeloso/following{/other_user}","gists_url":"https://api.github.com/users/TiagoVeloso/gists{/gist_id}","starred_url":"https://api.github.com/users/TiagoVeloso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiagoVeloso/subscriptions","organizations_url":"https://api.github.com/users/TiagoVeloso/orgs","repos_url":"https://api.github.com/users/TiagoVeloso/repos","events_url":"https://api.github.com/users/TiagoVeloso/events{/privacy}","received_events_url":"https://api.github.com/users/TiagoVeloso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T11:57:26Z","updated_at":"2015-12-03T11:57:26Z","closed_at":null,"body":"I have a model that has two properties `name` and `address`, name is an optional property.\r\n\r\nis it possible to represent this model in JSON as an array of objects, or an array of strings, based on the presence of the `name` property?\r\n"}}