{"action":"created","comment":{"url":"https://api.github.com/repos/spring-projects/spring-batch/pulls/comments/194174438","pull_request_review_id":127306535,"id":194174438,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDE3NDQzOA==","diff_hunk":"@@ -1748,6 +1747,70 @@ trade.setCustomer(\"Customer1\");\n staxItemWriter.write(trade);\n ----\n \n+[[jsonReadingWriting]]\n+=== JSON Item Readers\n+\n+Spring Batch provides support for reading JSON resources in the following format:\n+\n+[source, json]\n+----\n+[\n+  {\n+    \"isin\": \"123\",\n+    \"quantity\": 1,\n+    \"price\": 1.2,\n+    \"customer\": \"foo\"\n+  },\n+  {\n+    \"isin\": \"456\",\n+    \"quantity\": 2,\n+    \"price\": 1.4,\n+    \"customer\": \"bar\"\n+  }\n+]\n+----\n+\n+It is assumed that the JSON resource is an array of JSON objects corresponding to\n+individual items. Spring Batch is not tied to any particular JSON library.\n+\n+[[JsonItemReader]]\n+==== `JsonItemReader`\n+\n+The `JsonItemReader` delegates JSON parsing and binding to implementations of the\n+`org.springframework.batch.item.json.JsonObjectReader` interface. This interface\n+is intended to be implemented by using a streaming API to read JSON objects\n+in chunks. Two libraries are supported:","path":"spring-batch-docs/asciidoc/readersAndWriters.adoc","position":null,"original_position":225,"commit_id":"aa3ca5f73489ec0dacbda7121588d5aef08cf894","original_commit_id":"893f52006ff59b227c746f48d9a42076b0379d26","user":{"login":"benas","id":1210553,"node_id":"MDQ6VXNlcjEyMTA1NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1210553?v=4","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2018-06-08T20:35:15Z","updated_at":"2018-06-08T20:35:15Z","html_url":"https://github.com/spring-projects/spring-batch/pull/610#discussion_r194174438","pull_request_url":"https://api.github.com/repos/spring-projects/spring-batch/pulls/610","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-batch/pulls/comments/194174438"},"html":{"href":"https://github.com/spring-projects/spring-batch/pull/610#discussion_r194174438"},"pull_request":{"href":"https://api.github.com/repos/spring-projects/spring-batch/pulls/610"}},"in_reply_to_id":194104633},"pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-batch/pulls/610","id":192644840,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNjQ0ODQw","html_url":"https://github.com/spring-projects/spring-batch/pull/610","diff_url":"https://github.com/spring-projects/spring-batch/pull/610.diff","patch_url":"https://github.com/spring-projects/spring-batch/pull/610.patch","issue_url":"https://api.github.com/repos/spring-projects/spring-batch/issues/610","number":610,"state":"open","locked":false,"title":"Update documentation for version 4.1.0","user":{"login":"benas","id":1210553,"node_id":"MDQ6VXNlcjEyMTA1NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1210553?v=4","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"body":"This PR updates the reference documentation with:\r\n\r\n* An updated \"What's new\" section for version 4.1.0 (mostly from v4.1.0.M1 announcement [blog post](https://spring.io/blog/2018/05/31/spring-batch-4-1-0-m1-released))\r\n* A new section in the \"Item Readers and Writers\" chapter to document the `JsonItemReader`","created_at":"2018-06-05T09:32:31Z","updated_at":"2018-06-08T20:35:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38a3e497b830b0efe32d1ecaada751d4da68b9f9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":896810429,"node_id":"MDU6TGFiZWw4OTY4MTA0Mjk=","url":"https://api.github.com/repos/spring-projects/spring-batch/labels/ready-to-review","name":"ready-to-review","color":"0052cc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/spring-projects/spring-batch/pulls/610/commits","review_comments_url":"https://api.github.com/repos/spring-projects/spring-batch/pulls/610/comments","review_comment_url":"https://api.github.com/repos/spring-projects/spring-batch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-projects/spring-batch/issues/610/comments","statuses_url":"https://api.github.com/repos/spring-projects/spring-batch/statuses/aa3ca5f73489ec0dacbda7121588d5aef08cf894","head":{"label":"benas:docs-version-4.1.0","ref":"docs-version-4.1.0","sha":"aa3ca5f73489ec0dacbda7121588d5aef08cf894","user":{"login":"benas","id":1210553,"node_id":"MDQ6VXNlcjEyMTA1NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1210553?v=4","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"repo":{"id":116242052,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYyNDIwNTI=","name":"spring-batch","full_name":"benas/spring-batch","owner":{"login":"benas","id":1210553,"node_id":"MDQ6VXNlcjEyMTA1NTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1210553?v=4","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benas/spring-batch","description":"Spring Batch is a framework for writing offline and batch applications using Spring and Java","fork":true,"url":"https://api.github.com/repos/benas/spring-batch","forks_url":"https://api.github.com/repos/benas/spring-batch/forks","keys_url":"https://api.github.com/repos/benas/spring-batch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benas/spring-batch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benas/spring-batch/teams","hooks_url":"https://api.github.com/repos/benas/spring-batch/hooks","issue_events_url":"https://api.github.com/repos/benas/spring-batch/issues/events{/number}","events_url":"https://api.github.com/repos/benas/spring-batch/events","assignees_url":"https://api.github.com/repos/benas/spring-batch/assignees{/user}","branches_url":"https://api.github.com/repos/benas/spring-batch/branches{/branch}","tags_url":"https://api.github.com/repos/benas/spring-batch/tags","blobs_url":"https://api.github.com/repos/benas/spring-batch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benas/spring-batch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benas/spring-batch/git/refs{/sha}","trees_url":"https://api.github.com/repos/benas/spring-batch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benas/spring-batch/statuses/{sha}","languages_url":"https://api.github.com/repos/benas/spring-batch/languages","stargazers_url":"https://api.github.com/repos/benas/spring-batch/stargazers","contributors_url":"https://api.github.com/repos/benas/spring-batch/contributors","subscribers_url":"https://api.github.com/repos/benas/spring-batch/subscribers","subscription_url":"https://api.github.com/repos/benas/spring-batch/subscription","commits_url":"https://api.github.com/repos/benas/spring-batch/commits{/sha}","git_commits_url":"https://api.github.com/repos/benas/spring-batch/git/commits{/sha}","comments_url":"https://api.github.com/repos/benas/spring-batch/comments{/number}","issue_comment_url":"https://api.github.com/repos/benas/spring-batch/issues/comments{/number}","contents_url":"https://api.github.com/repos/benas/spring-batch/contents/{+path}","compare_url":"https://api.github.com/repos/benas/spring-batch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benas/spring-batch/merges","archive_url":"https://api.github.com/repos/benas/spring-batch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benas/spring-batch/downloads","issues_url":"https://api.github.com/repos/benas/spring-batch/issues{/number}","pulls_url":"https://api.github.com/repos/benas/spring-batch/pulls{/number}","milestones_url":"https://api.github.com/repos/benas/spring-batch/milestones{/number}","notifications_url":"https://api.github.com/repos/benas/spring-batch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benas/spring-batch/labels{/name}","releases_url":"https://api.github.com/repos/benas/spring-batch/releases{/id}","deployments_url":"https://api.github.com/repos/benas/spring-batch/deployments","created_at":"2018-01-04T09:38:50Z","updated_at":"2018-06-05T14:39:14Z","pushed_at":"2018-06-08T20:33:39Z","git_url":"git://github.com/benas/spring-batch.git","ssh_url":"git@github.com:benas/spring-batch.git","clone_url":"https://github.com/benas/spring-batch.git","svn_url":"https://github.com/benas/spring-batch","homepage":"http://projects.spring.io/spring-batch/","size":87551,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spring-projects:master","ref":"master","sha":"bd8daf0cafb294f434bdd543de43a134408d150c","user":{"login":"spring-projects","id":317776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzc3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/317776?v=4","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":1089149,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg5MTQ5","name":"spring-batch","full_name":"spring-projects/spring-batch","owner":{"login":"spring-projects","id":317776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzc3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/317776?v=4","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-projects/spring-batch","description":"Spring Batch is a framework for writing offline and batch applications using Spring and Java","fork":false,"url":"https://api.github.com/repos/spring-projects/spring-batch","forks_url":"https://api.github.com/repos/spring-projects/spring-batch/forks","keys_url":"https://api.github.com/repos/spring-projects/spring-batch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-projects/spring-batch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-projects/spring-batch/teams","hooks_url":"https://api.github.com/repos/spring-projects/spring-batch/hooks","issue_events_url":"https://api.github.com/repos/spring-projects/spring-batch/issues/events{/number}","events_url":"https://api.github.com/repos/spring-projects/spring-batch/events","assignees_url":"https://api.github.com/repos/spring-projects/spring-batch/assignees{/user}","branches_url":"https://api.github.com/repos/spring-projects/spring-batch/branches{/branch}","tags_url":"https://api.github.com/repos/spring-projects/spring-batch/tags","blobs_url":"https://api.github.com/repos/spring-projects/spring-batch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-projects/spring-batch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-projects/spring-batch/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-projects/spring-batch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-projects/spring-batch/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-projects/spring-batch/languages","stargazers_url":"https://api.github.com/repos/spring-projects/spring-batch/stargazers","contributors_url":"https://api.github.com/repos/spring-projects/spring-batch/contributors","subscribers_url":"https://api.github.com/repos/spring-projects/spring-batch/subscribers","subscription_url":"https://api.github.com/repos/spring-projects/spring-batch/subscription","commits_url":"https://api.github.com/repos/spring-projects/spring-batch/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-projects/spring-batch/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-projects/spring-batch/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-projects/spring-batch/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-projects/spring-batch/contents/{+path}","compare_url":"https://api.github.com/repos/spring-projects/spring-batch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-projects/spring-batch/merges","archive_url":"https://api.github.com/repos/spring-projects/spring-batch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-projects/spring-batch/downloads","issues_url":"https://api.github.com/repos/spring-projects/spring-batch/issues{/number}","pulls_url":"https://api.github.com/repos/spring-projects/spring-batch/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-projects/spring-batch/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-projects/spring-batch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-projects/spring-batch/labels{/name}","releases_url":"https://api.github.com/repos/spring-projects/spring-batch/releases{/id}","deployments_url":"https://api.github.com/repos/spring-projects/spring-batch/deployments","created_at":"2010-11-17T17:53:45Z","updated_at":"2018-06-08T16:51:06Z","pushed_at":"2018-06-08T20:33:42Z","git_url":"git://github.com/spring-projects/spring-batch.git","ssh_url":"git@github.com:spring-projects/spring-batch.git","clone_url":"https://github.com/spring-projects/spring-batch.git","svn_url":"https://github.com/spring-projects/spring-batch","homepage":"http://projects.spring.io/spring-batch/","size":87532,"stargazers_count":972,"watchers_count":972,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1031,"mirror_url":null,"archived":false,"open_issues_count":33,"license":null,"forks":1031,"open_issues":33,"watchers":972,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-batch/pulls/610"},"html":{"href":"https://github.com/spring-projects/spring-batch/pull/610"},"issue":{"href":"https://api.github.com/repos/spring-projects/spring-batch/issues/610"},"comments":{"href":"https://api.github.com/repos/spring-projects/spring-batch/issues/610/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-projects/spring-batch/pulls/610/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-projects/spring-batch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-projects/spring-batch/pulls/610/commits"},"statuses":{"href":"https://api.github.com/repos/spring-projects/spring-batch/statuses/aa3ca5f73489ec0dacbda7121588d5aef08cf894"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"benas"}}