{"action":"created","issue":{"url":"https://api.github.com/repos/hhroc/yellr-android/issues/42","labels_url":"https://api.github.com/repos/hhroc/yellr-android/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/hhroc/yellr-android/issues/42/comments","events_url":"https://api.github.com/repos/hhroc/yellr-android/issues/42/events","html_url":"https://github.com/hhroc/yellr-android/issues/42","id":56936432,"number":42,"title":"PublishPostIntentService GSON Issue","user":{"login":"reustonium","id":1432186,"avatar_url":"https://avatars.githubusercontent.com/u/1432186?v=3","gravatar_id":"","url":"https://api.github.com/users/reustonium","html_url":"https://github.com/reustonium","followers_url":"https://api.github.com/users/reustonium/followers","following_url":"https://api.github.com/users/reustonium/following{/other_user}","gists_url":"https://api.github.com/users/reustonium/gists{/gist_id}","starred_url":"https://api.github.com/users/reustonium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reustonium/subscriptions","organizations_url":"https://api.github.com/users/reustonium/orgs","repos_url":"https://api.github.com/users/reustonium/repos","events_url":"https://api.github.com/users/reustonium/events{/privacy}","received_events_url":"https://api.github.com/users/reustonium/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hhroc/yellr-android/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/hhroc/yellr-android/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-08T03:01:34Z","updated_at":"2015-02-08T16:57:11Z","closed_at":null,"body":"Stringifying the MediaObjects JSON to pass to the service via putExtras(string) isn't necessary, and is actually a lot more complicated than the alternatives.\r\n\r\nThe current method requires:\r\n1. creating a MediaObjectsDefinition Object \r\n2. setting the properties\r\n3. using gson.toJson\r\n4. putExtra(newJsonString)\r\n\r\nThis causes bugs when getExtras finds a single media object rather than an array.\r\n\r\nSince communicating between the fragment and intentService doesn't really need any JSON it would be way cleaner and much faster to make MediaObjectsDefinition implement [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) this makes for a nice way to pass the media object(s) to the service without any JSON BS.\r\n"},"comment":{"url":"https://api.github.com/repos/hhroc/yellr-android/issues/comments/73419429","html_url":"https://github.com/hhroc/yellr-android/issues/42#issuecomment-73419429","issue_url":"https://api.github.com/repos/hhroc/yellr-android/issues/42","id":73419429,"user":{"login":"thequbit","id":772612,"avatar_url":"https://avatars.githubusercontent.com/u/772612?v=3","gravatar_id":"","url":"https://api.github.com/users/thequbit","html_url":"https://github.com/thequbit","followers_url":"https://api.github.com/users/thequbit/followers","following_url":"https://api.github.com/users/thequbit/following{/other_user}","gists_url":"https://api.github.com/users/thequbit/gists{/gist_id}","starred_url":"https://api.github.com/users/thequbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thequbit/subscriptions","organizations_url":"https://api.github.com/users/thequbit/orgs","repos_url":"https://api.github.com/users/thequbit/repos","events_url":"https://api.github.com/users/thequbit/events{/privacy}","received_events_url":"https://api.github.com/users/thequbit/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T16:57:11Z","updated_at":"2015-02-08T16:57:11Z","body":"haha, classic.  No worries."}}