{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/218","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/218/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/218/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/218","id":59374693,"number":218,"title":"Ability to parse a JSON HttpResult containing an Array of objects","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-01T03:27:53Z","updated_at":"2015-03-01T03:27:54Z","closed_at":"2015-03-01T03:27:53Z","body":"```\nExternal references, such as a standards document, or specification?\n\nDiscussion Thread \nhttp://groups.google.com/group/google-api-java-client/browse_thread/thread/73945\ndc17855052e\n\nExample API\nhttp://dev.twitter.com/doc/get/users/search\n\nJava environments (e.g. Java 6, Android 2.3, App Engine 1.4.2, or All)?\n\nAll\n\nPlease describe the feature requested.\n\nCurrently the api client cannot parse an HttpResponse formatted as a JSON array \nof objects.\n\nie: [{\"prop1\":\"val1\",\"prop2\":\"val2\"},{\"prop1\":\"val1\",\"prop2\":\"val2\"}] \n\nAttempting to parse using parseAs(class) generates an IllegalArgumentException:\n\nException in thread \"main\" java.lang.IllegalArgumentException: START_ARRAY at \ncom.google.common.base.Preconditions.checkArgument(Preconditions.java: \n88) \n\nNote that parseAsString() does work properly but the call \nFeed resp = response.parseAs(Feed.class); \nShould properly parse and return a feed object.\n```\n\nOriginal issue reported on code.google.com by `ddamo...@gmail.com` on 21 May 2011 at 5:35"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76568836","html_url":"https://github.com/chrsmith/google-api-java-client/issues/218#issuecomment-76568836","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/218","id":76568836,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T03:27:53Z","updated_at":"2015-03-01T03:27:53Z","body":"```\nAn alternative is\n  List<Item> items = new ArrayList<Item>();\n  Status status =  response.parseInto(items);\n\nThis eliminates the need for a template method, so it may result in less code \nsize.\n```\n\nOriginal comment by `ai...@google.com` on 23 May 2011 at 3:32"}}