{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/3116","labels_url":"https://api.github.com/repos/select2/select2/issues/3116/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/3116/comments","events_url":"https://api.github.com/repos/select2/select2/issues/3116/events","html_url":"https://github.com/select2/select2/issues/3116","id":60155935,"number":3116,"title":"DataAdapter (InitSelection deprecation)  documentation","user":{"login":"Jrizzi1","id":622313,"avatar_url":"https://avatars.githubusercontent.com/u/622313?v=3","gravatar_id":"","url":"https://api.github.com/users/Jrizzi1","html_url":"https://github.com/Jrizzi1","followers_url":"https://api.github.com/users/Jrizzi1/followers","following_url":"https://api.github.com/users/Jrizzi1/following{/other_user}","gists_url":"https://api.github.com/users/Jrizzi1/gists{/gist_id}","starred_url":"https://api.github.com/users/Jrizzi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jrizzi1/subscriptions","organizations_url":"https://api.github.com/users/Jrizzi1/orgs","repos_url":"https://api.github.com/users/Jrizzi1/repos","events_url":"https://api.github.com/users/Jrizzi1/events{/privacy}","received_events_url":"https://api.github.com/users/Jrizzi1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/select2/select2/labels/documentation","name":"documentation","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-06T20:42:27Z","updated_at":"2015-05-13T15:12:32Z","closed_at":null,"body":"I am attempting to migrate from Select2 3.5.2 to Select2 4.0.0rc1\r\n\r\nI have  current code which uses InitSelection to prepopulate values \r\n\r\nBut i see that this is being deprecated which makes sense, initselection focused on input val, where 4.0.0 will be migrating to the select element\r\n\r\nThe point is, I can find no documentation on how this is accomplished\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/101711286","html_url":"https://github.com/select2/select2/issues/3116#issuecomment-101711286","issue_url":"https://api.github.com/repos/select2/select2/issues/3116","id":101711286,"user":{"login":"kevin-brown","id":1991850,"avatar_url":"https://avatars.githubusercontent.com/u/1991850?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-brown","html_url":"https://github.com/kevin-brown","followers_url":"https://api.github.com/users/kevin-brown/followers","following_url":"https://api.github.com/users/kevin-brown/following{/other_user}","gists_url":"https://api.github.com/users/kevin-brown/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-brown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-brown/subscriptions","organizations_url":"https://api.github.com/users/kevin-brown/orgs","repos_url":"https://api.github.com/users/kevin-brown/repos","events_url":"https://api.github.com/users/kevin-brown/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-brown/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T15:12:32Z","updated_at":"2015-05-13T15:12:32Z","body":"> so based on the example in the release nodes, how would/did you go about easily implementing the solution in 4.0? Can you provide examples? Maybe it's something we all missed...\r\n\r\nIt sounds like @pjclas is referring to the second example in the release notes, which is roughly equivalent to the example in the jsfiddle.\r\n\r\nAnd I agree, the second example is much closer to what most people need to use when migrating. If someone wants to create a pull request that either clarifies that or switches the example, that'd be great."}}