{"action":"created","issue":{"url":"https://api.github.com/repos/Kotlin/kotlinx.serialization/issues/27","repository_url":"https://api.github.com/repos/Kotlin/kotlinx.serialization","labels_url":"https://api.github.com/repos/Kotlin/kotlinx.serialization/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Kotlin/kotlinx.serialization/issues/27/comments","events_url":"https://api.github.com/repos/Kotlin/kotlinx.serialization/issues/27/events","html_url":"https://github.com/Kotlin/kotlinx.serialization/issues/27","id":265865372,"number":27,"title":"Provide public API to create typed collection serializers","user":{"login":"elizarov","id":478679,"avatar_url":"https://avatars2.githubusercontent.com/u/478679?v=4","gravatar_id":"","url":"https://api.github.com/users/elizarov","html_url":"https://github.com/elizarov","followers_url":"https://api.github.com/users/elizarov/followers","following_url":"https://api.github.com/users/elizarov/following{/other_user}","gists_url":"https://api.github.com/users/elizarov/gists{/gist_id}","starred_url":"https://api.github.com/users/elizarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizarov/subscriptions","organizations_url":"https://api.github.com/users/elizarov/orgs","repos_url":"https://api.github.com/users/elizarov/repos","events_url":"https://api.github.com/users/elizarov/events{/privacy}","received_events_url":"https://api.github.com/users/elizarov/received_events","type":"User","site_admin":false},"labels":[{"id":651225596,"url":"https://api.github.com/repos/Kotlin/kotlinx.serialization/labels/feature","name":"feature","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-16T18:17:00Z","updated_at":"2018-04-05T19:00:50Z","closed_at":"2017-10-20T20:32:56Z","author_association":"CONTRIBUTOR","body":"There is a need to have top-level serializer extension properties named `list`, `set`, and `map` that construct build-in collection serializers from the element serializers with the following signatures:\r\n\r\n```\r\nval <T> KSerializer<T>.list: KSerializer<List<T>>\r\nval <T> KSerializer<T>.set: KSerializer<Set<T>>\r\nval <K, V> Pair<KSerializer<K>, KSerializer<V>>.map: KSerializer<Map<K, V>>\r\n```\r\n\r\nSo, a list of serializable `Data` items received via REST API in `str: String` could be deserialized conveniently with:\r\n\r\n```\r\nval list = JSON.parse(str, Data.list) // inferred type of list is List<Data>\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Kotlin/kotlinx.serialization/issues/comments/379042650","html_url":"https://github.com/Kotlin/kotlinx.serialization/issues/27#issuecomment-379042650","issue_url":"https://api.github.com/repos/Kotlin/kotlinx.serialization/issues/27","id":379042650,"user":{"login":"dany-kun","id":8478830,"avatar_url":"https://avatars1.githubusercontent.com/u/8478830?v=4","gravatar_id":"","url":"https://api.github.com/users/dany-kun","html_url":"https://github.com/dany-kun","followers_url":"https://api.github.com/users/dany-kun/followers","following_url":"https://api.github.com/users/dany-kun/following{/other_user}","gists_url":"https://api.github.com/users/dany-kun/gists{/gist_id}","starred_url":"https://api.github.com/users/dany-kun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dany-kun/subscriptions","organizations_url":"https://api.github.com/users/dany-kun/orgs","repos_url":"https://api.github.com/users/dany-kun/repos","events_url":"https://api.github.com/users/dany-kun/events{/privacy}","received_events_url":"https://api.github.com/users/dany-kun/received_events","type":"User","site_admin":false},"created_at":"2018-04-05T19:00:50Z","updated_at":"2018-04-05T19:00:50Z","author_association":"NONE","body":"You can get your List/Set... serializer from the default serializer of class Foo with `Foo.class.serializer().list`"}}
{"actor":{"display_login":"dany-kun"}}