{"action":"created","comment":{"url":"https://api.github.com/repos/realm/realm-java/pulls/comments/53283883","id":53283883,"diff_hunk":"@@ -331,6 +331,7 @@ private static void initializeRealm(Realm realm) {\n     /**\n      * Tries to update a list of existing objects identified by their primary key with new JSON data. If an existing\n      * object could not be found in the Realm, a new object will be created. This must happen within a transaction.\n+     * If a Realm object property is not present in the JSON object the Realm object property will be {@code null}.","path":"realm/realm-library/src/main/java/io/realm/Realm.java","position":13,"original_position":13,"commit_id":"68a7bafdbdf9fd22ade95ffd704409280b0692de","original_commit_id":"68a7bafdbdf9fd22ade95ffd704409280b0692de","user":{"login":"cmelchior","id":406066,"avatar_url":"https://avatars.githubusercontent.com/u/406066?v=3","gravatar_id":"","url":"https://api.github.com/users/cmelchior","html_url":"https://github.com/cmelchior","followers_url":"https://api.github.com/users/cmelchior/followers","following_url":"https://api.github.com/users/cmelchior/following{/other_user}","gists_url":"https://api.github.com/users/cmelchior/gists{/gist_id}","starred_url":"https://api.github.com/users/cmelchior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmelchior/subscriptions","organizations_url":"https://api.github.com/users/cmelchior/orgs","repos_url":"https://api.github.com/users/cmelchior/repos","events_url":"https://api.github.com/users/cmelchior/events{/privacy}","received_events_url":"https://api.github.com/users/cmelchior/received_events","type":"User","site_admin":false},"body":"That is not true for update, it will be ignored. \r\n\r\nWhat about ?:\r\n```\r\n<p>\r\nIf updating a RealmObject and a field is not found in the JSON object, that field will not be updated. If a new RealmObject is created and a field is not found in the JSON object, that field will be assigned the default value for the field type.\r\n```","created_at":"2016-02-18T08:32:16Z","updated_at":"2016-02-18T08:32:16Z","html_url":"https://github.com/realm/realm-java/pull/2298#discussion_r53283883","pull_request_url":"https://api.github.com/repos/realm/realm-java/pulls/2298","_links":{"self":{"href":"https://api.github.com/repos/realm/realm-java/pulls/comments/53283883"},"html":{"href":"https://github.com/realm/realm-java/pull/2298#discussion_r53283883"},"pull_request":{"href":"https://api.github.com/repos/realm/realm-java/pulls/2298"}}},"pull_request":{"url":"https://api.github.com/repos/realm/realm-java/pulls/2298","id":59727603,"html_url":"https://github.com/realm/realm-java/pull/2298","diff_url":"https://github.com/realm/realm-java/pull/2298.diff","patch_url":"https://github.com/realm/realm-java/pull/2298.patch","issue_url":"https://api.github.com/repos/realm/realm-java/issues/2298","number":2298,"state":"open","locked":false,"title":"Adding javadoc to document field mutation behavior of copyToRealm and  createFromJson methods.","user":{"login":"donnfelker","id":91827,"avatar_url":"https://avatars.githubusercontent.com/u/91827?v=3","gravatar_id":"","url":"https://api.github.com/users/donnfelker","html_url":"https://github.com/donnfelker","followers_url":"https://api.github.com/users/donnfelker/followers","following_url":"https://api.github.com/users/donnfelker/following{/other_user}","gists_url":"https://api.github.com/users/donnfelker/gists{/gist_id}","starred_url":"https://api.github.com/users/donnfelker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donnfelker/subscriptions","organizations_url":"https://api.github.com/users/donnfelker/orgs","repos_url":"https://api.github.com/users/donnfelker/repos","events_url":"https://api.github.com/users/donnfelker/events{/privacy}","received_events_url":"https://api.github.com/users/donnfelker/received_events","type":"User","site_admin":false},"body":"Closes #1483\r\n\r\nPlease review @realm/java","created_at":"2016-02-17T23:34:38Z","updated_at":"2016-02-18T08:32:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a6fb566b389641ecc205bcc2f4d241bcbe053e8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/realm/realm-java/pulls/2298/commits","review_comments_url":"https://api.github.com/repos/realm/realm-java/pulls/2298/comments","review_comment_url":"https://api.github.com/repos/realm/realm-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/2298/comments","statuses_url":"https://api.github.com/repos/realm/realm-java/statuses/68a7bafdbdf9fd22ade95ffd704409280b0692de","head":{"label":"donnfelker:df/json-default-fields-javadoc","ref":"df/json-default-fields-javadoc","sha":"68a7bafdbdf9fd22ade95ffd704409280b0692de","user":{"login":"donnfelker","id":91827,"avatar_url":"https://avatars.githubusercontent.com/u/91827?v=3","gravatar_id":"","url":"https://api.github.com/users/donnfelker","html_url":"https://github.com/donnfelker","followers_url":"https://api.github.com/users/donnfelker/followers","following_url":"https://api.github.com/users/donnfelker/following{/other_user}","gists_url":"https://api.github.com/users/donnfelker/gists{/gist_id}","starred_url":"https://api.github.com/users/donnfelker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donnfelker/subscriptions","organizations_url":"https://api.github.com/users/donnfelker/orgs","repos_url":"https://api.github.com/users/donnfelker/repos","events_url":"https://api.github.com/users/donnfelker/events{/privacy}","received_events_url":"https://api.github.com/users/donnfelker/received_events","type":"User","site_admin":false},"repo":{"id":45628962,"name":"realm-java","full_name":"donnfelker/realm-java","owner":{"login":"donnfelker","id":91827,"avatar_url":"https://avatars.githubusercontent.com/u/91827?v=3","gravatar_id":"","url":"https://api.github.com/users/donnfelker","html_url":"https://github.com/donnfelker","followers_url":"https://api.github.com/users/donnfelker/followers","following_url":"https://api.github.com/users/donnfelker/following{/other_user}","gists_url":"https://api.github.com/users/donnfelker/gists{/gist_id}","starred_url":"https://api.github.com/users/donnfelker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donnfelker/subscriptions","organizations_url":"https://api.github.com/users/donnfelker/orgs","repos_url":"https://api.github.com/users/donnfelker/repos","events_url":"https://api.github.com/users/donnfelker/events{/privacy}","received_events_url":"https://api.github.com/users/donnfelker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/donnfelker/realm-java","description":"Realm is a mobile database: a replacement for SQLite & ORMs","fork":true,"url":"https://api.github.com/repos/donnfelker/realm-java","forks_url":"https://api.github.com/repos/donnfelker/realm-java/forks","keys_url":"https://api.github.com/repos/donnfelker/realm-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donnfelker/realm-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donnfelker/realm-java/teams","hooks_url":"https://api.github.com/repos/donnfelker/realm-java/hooks","issue_events_url":"https://api.github.com/repos/donnfelker/realm-java/issues/events{/number}","events_url":"https://api.github.com/repos/donnfelker/realm-java/events","assignees_url":"https://api.github.com/repos/donnfelker/realm-java/assignees{/user}","branches_url":"https://api.github.com/repos/donnfelker/realm-java/branches{/branch}","tags_url":"https://api.github.com/repos/donnfelker/realm-java/tags","blobs_url":"https://api.github.com/repos/donnfelker/realm-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donnfelker/realm-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donnfelker/realm-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/donnfelker/realm-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donnfelker/realm-java/statuses/{sha}","languages_url":"https://api.github.com/repos/donnfelker/realm-java/languages","stargazers_url":"https://api.github.com/repos/donnfelker/realm-java/stargazers","contributors_url":"https://api.github.com/repos/donnfelker/realm-java/contributors","subscribers_url":"https://api.github.com/repos/donnfelker/realm-java/subscribers","subscription_url":"https://api.github.com/repos/donnfelker/realm-java/subscription","commits_url":"https://api.github.com/repos/donnfelker/realm-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/donnfelker/realm-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/donnfelker/realm-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/donnfelker/realm-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/donnfelker/realm-java/contents/{+path}","compare_url":"https://api.github.com/repos/donnfelker/realm-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donnfelker/realm-java/merges","archive_url":"https://api.github.com/repos/donnfelker/realm-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donnfelker/realm-java/downloads","issues_url":"https://api.github.com/repos/donnfelker/realm-java/issues{/number}","pulls_url":"https://api.github.com/repos/donnfelker/realm-java/pulls{/number}","milestones_url":"https://api.github.com/repos/donnfelker/realm-java/milestones{/number}","notifications_url":"https://api.github.com/repos/donnfelker/realm-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donnfelker/realm-java/labels{/name}","releases_url":"https://api.github.com/repos/donnfelker/realm-java/releases{/id}","deployments_url":"https://api.github.com/repos/donnfelker/realm-java/deployments","created_at":"2015-11-05T17:51:10Z","updated_at":"2016-02-01T11:23:13Z","pushed_at":"2016-02-17T23:33:17Z","git_url":"git://github.com/donnfelker/realm-java.git","ssh_url":"git@github.com:donnfelker/realm-java.git","clone_url":"https://github.com/donnfelker/realm-java.git","svn_url":"https://github.com/donnfelker/realm-java","homepage":"http://realm.io","size":41683,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"realm:master","ref":"master","sha":"24b89d6efc5e24348028de210b61552e5537939e","user":{"login":"realm","id":7575099,"avatar_url":"https://avatars.githubusercontent.com/u/7575099?v=3","gravatar_id":"","url":"https://api.github.com/users/realm","html_url":"https://github.com/realm","followers_url":"https://api.github.com/users/realm/followers","following_url":"https://api.github.com/users/realm/following{/other_user}","gists_url":"https://api.github.com/users/realm/gists{/gist_id}","starred_url":"https://api.github.com/users/realm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realm/subscriptions","organizations_url":"https://api.github.com/users/realm/orgs","repos_url":"https://api.github.com/users/realm/repos","events_url":"https://api.github.com/users/realm/events{/privacy}","received_events_url":"https://api.github.com/users/realm/received_events","type":"Organization","site_admin":false},"repo":{"id":4084908,"name":"realm-java","full_name":"realm/realm-java","owner":{"login":"realm","id":7575099,"avatar_url":"https://avatars.githubusercontent.com/u/7575099?v=3","gravatar_id":"","url":"https://api.github.com/users/realm","html_url":"https://github.com/realm","followers_url":"https://api.github.com/users/realm/followers","following_url":"https://api.github.com/users/realm/following{/other_user}","gists_url":"https://api.github.com/users/realm/gists{/gist_id}","starred_url":"https://api.github.com/users/realm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realm/subscriptions","organizations_url":"https://api.github.com/users/realm/orgs","repos_url":"https://api.github.com/users/realm/repos","events_url":"https://api.github.com/users/realm/events{/privacy}","received_events_url":"https://api.github.com/users/realm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/realm/realm-java","description":"Realm is a mobile database: a replacement for SQLite & ORMs","fork":false,"url":"https://api.github.com/repos/realm/realm-java","forks_url":"https://api.github.com/repos/realm/realm-java/forks","keys_url":"https://api.github.com/repos/realm/realm-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/realm/realm-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/realm/realm-java/teams","hooks_url":"https://api.github.com/repos/realm/realm-java/hooks","issue_events_url":"https://api.github.com/repos/realm/realm-java/issues/events{/number}","events_url":"https://api.github.com/repos/realm/realm-java/events","assignees_url":"https://api.github.com/repos/realm/realm-java/assignees{/user}","branches_url":"https://api.github.com/repos/realm/realm-java/branches{/branch}","tags_url":"https://api.github.com/repos/realm/realm-java/tags","blobs_url":"https://api.github.com/repos/realm/realm-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/realm/realm-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/realm/realm-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/realm/realm-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/realm/realm-java/statuses/{sha}","languages_url":"https://api.github.com/repos/realm/realm-java/languages","stargazers_url":"https://api.github.com/repos/realm/realm-java/stargazers","contributors_url":"https://api.github.com/repos/realm/realm-java/contributors","subscribers_url":"https://api.github.com/repos/realm/realm-java/subscribers","subscription_url":"https://api.github.com/repos/realm/realm-java/subscription","commits_url":"https://api.github.com/repos/realm/realm-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/realm/realm-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/realm/realm-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/realm/realm-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/realm/realm-java/contents/{+path}","compare_url":"https://api.github.com/repos/realm/realm-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/realm/realm-java/merges","archive_url":"https://api.github.com/repos/realm/realm-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/realm/realm-java/downloads","issues_url":"https://api.github.com/repos/realm/realm-java/issues{/number}","pulls_url":"https://api.github.com/repos/realm/realm-java/pulls{/number}","milestones_url":"https://api.github.com/repos/realm/realm-java/milestones{/number}","notifications_url":"https://api.github.com/repos/realm/realm-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/realm/realm-java/labels{/name}","releases_url":"https://api.github.com/repos/realm/realm-java/releases{/id}","deployments_url":"https://api.github.com/repos/realm/realm-java/deployments","created_at":"2012-04-20T09:18:42Z","updated_at":"2016-02-18T07:59:56Z","pushed_at":"2016-02-17T23:34:38Z","git_url":"git://github.com/realm/realm-java.git","ssh_url":"git@github.com:realm/realm-java.git","clone_url":"https://github.com/realm/realm-java.git","svn_url":"https://github.com/realm/realm-java","homepage":"http://realm.io","size":46099,"stargazers_count":3650,"watchers_count":3650,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":417,"mirror_url":null,"open_issues_count":219,"forks":417,"open_issues":219,"watchers":3650,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/realm/realm-java/pulls/2298"},"html":{"href":"https://github.com/realm/realm-java/pull/2298"},"issue":{"href":"https://api.github.com/repos/realm/realm-java/issues/2298"},"comments":{"href":"https://api.github.com/repos/realm/realm-java/issues/2298/comments"},"review_comments":{"href":"https://api.github.com/repos/realm/realm-java/pulls/2298/comments"},"review_comment":{"href":"https://api.github.com/repos/realm/realm-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/realm/realm-java/pulls/2298/commits"},"statuses":{"href":"https://api.github.com/repos/realm/realm-java/statuses/68a7bafdbdf9fd22ade95ffd704409280b0692de"}}}}