{"action":"created","issue":{"url":"https://api.github.com/repos/google/gson/issues/671","labels_url":"https://api.github.com/repos/google/gson/issues/671/labels{/name}","comments_url":"https://api.github.com/repos/google/gson/issues/671/comments","events_url":"https://api.github.com/repos/google/gson/issues/671/events","html_url":"https://github.com/google/gson/pull/671","id":96959214,"number":671,"title":"Support for adding primitives directly to JsonArray instances","user":{"login":"ownaginatious","id":1163192,"avatar_url":"https://avatars.githubusercontent.com/u/1163192?v=3","gravatar_id":"","url":"https://api.github.com/users/ownaginatious","html_url":"https://github.com/ownaginatious","followers_url":"https://api.github.com/users/ownaginatious/followers","following_url":"https://api.github.com/users/ownaginatious/following{/other_user}","gists_url":"https://api.github.com/users/ownaginatious/gists{/gist_id}","starred_url":"https://api.github.com/users/ownaginatious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ownaginatious/subscriptions","organizations_url":"https://api.github.com/users/ownaginatious/orgs","repos_url":"https://api.github.com/users/ownaginatious/repos","events_url":"https://api.github.com/users/ownaginatious/events{/privacy}","received_events_url":"https://api.github.com/users/ownaginatious/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-24T04:01:33Z","updated_at":"2015-07-26T21:17:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/gson/pulls/671","html_url":"https://github.com/google/gson/pull/671","diff_url":"https://github.com/google/gson/pull/671.diff","patch_url":"https://github.com/google/gson/pull/671.patch"},"body":"Overloaded the \"add(...)\" method in JsonArray to support directly putting in primitives as arguments.\r\n\r\nNow instead of inserting them in the old overly verbose way:\r\n```java\r\nJsonArray array = new JsonArray();\r\narray.add(new JsonPrimitive(true));\r\narray.add(new JsonPrimitive(12));\r\narray.add(new JsonPrimitive(\"hello\"));\r\narray.add(new JsonPrimitive('c'));\r\n```\r\nYou can do:\r\n```java\r\nJsonArray array = new JsonArray();\r\narray.add(true);\r\narray.add(12);\r\narray.add(\"hello\");\r\narray.add('c');\r\n```"},"comment":{"url":"https://api.github.com/repos/google/gson/issues/comments/125040975","html_url":"https://github.com/google/gson/pull/671#issuecomment-125040975","issue_url":"https://api.github.com/repos/google/gson/issues/671","id":125040975,"user":{"login":"inder123","id":1093834,"avatar_url":"https://avatars.githubusercontent.com/u/1093834?v=3","gravatar_id":"","url":"https://api.github.com/users/inder123","html_url":"https://github.com/inder123","followers_url":"https://api.github.com/users/inder123/followers","following_url":"https://api.github.com/users/inder123/following{/other_user}","gists_url":"https://api.github.com/users/inder123/gists{/gist_id}","starred_url":"https://api.github.com/users/inder123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inder123/subscriptions","organizations_url":"https://api.github.com/users/inder123/orgs","repos_url":"https://api.github.com/users/inder123/repos","events_url":"https://api.github.com/users/inder123/events{/privacy}","received_events_url":"https://api.github.com/users/inder123/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T21:17:03Z","updated_at":"2015-07-26T21:17:03Z","body":"@ownaginatious  Thanks for the changes. I am going to accept them.\r\nFeel free to send another pull request with addProperty changes."}}