{"action":"created","issue":{"url":"https://api.github.com/repos/npgsql/npgsql/issues/1891","repository_url":"https://api.github.com/repos/npgsql/npgsql","labels_url":"https://api.github.com/repos/npgsql/npgsql/issues/1891/labels{/name}","comments_url":"https://api.github.com/repos/npgsql/npgsql/issues/1891/comments","events_url":"https://api.github.com/repos/npgsql/npgsql/issues/1891/events","html_url":"https://github.com/npgsql/npgsql/issues/1891","id":315216006,"number":1891,"title":"Accept UTF8 byte array as .NET type for Json/b ","user":{"login":"kspeakman","id":4582668,"avatar_url":"https://avatars2.githubusercontent.com/u/4582668?v=4","gravatar_id":"","url":"https://api.github.com/users/kspeakman","html_url":"https://github.com/kspeakman","followers_url":"https://api.github.com/users/kspeakman/followers","following_url":"https://api.github.com/users/kspeakman/following{/other_user}","gists_url":"https://api.github.com/users/kspeakman/gists{/gist_id}","starred_url":"https://api.github.com/users/kspeakman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kspeakman/subscriptions","organizations_url":"https://api.github.com/users/kspeakman/orgs","repos_url":"https://api.github.com/users/kspeakman/repos","events_url":"https://api.github.com/users/kspeakman/events{/privacy}","received_events_url":"https://api.github.com/users/kspeakman/received_events","type":"User","site_admin":false},"labels":[{"id":70004675,"url":"https://api.github.com/repos/npgsql/npgsql/labels/enhancement","name":"enhancement","color":"009800","default":true},{"id":119159232,"url":"https://api.github.com/repos/npgsql/npgsql/labels/performance","name":"performance","color":"bfe5bf","default":false},{"id":169275568,"url":"https://api.github.com/repos/npgsql/npgsql/labels/up%20for%20grabs","name":"up for grabs","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-17T20:21:31Z","updated_at":"2018-04-18T15:33:07Z","closed_at":null,"author_association":"NONE","body":"If I use a zero-allocation JSON de/serializer like [utf8json](https://github.com/neuecc/Utf8Json/), it serializes straight to UTF8 bytes. I need to convert it back to a .NET string to pass it to Npgsql, then Npgsql turns back around and converts it back to UTF8 bytes before sending.\r\n\r\nWould it possible to accept a byte array in addition to the currently accepted .NET types for json/b types?\r\n\r\n_I doubt there is much possibility of encoding other than UTF-8 when targeting JSON, considering section 8.1 of the current [JSON spec](https://www.rfc-editor.org/rfc/rfc8259.txt)._"},"comment":{"url":"https://api.github.com/repos/npgsql/npgsql/issues/comments/382429395","html_url":"https://github.com/npgsql/npgsql/issues/1891#issuecomment-382429395","issue_url":"https://api.github.com/repos/npgsql/npgsql/issues/1891","id":382429395,"user":{"login":"roji","id":1862641,"avatar_url":"https://avatars0.githubusercontent.com/u/1862641?v=4","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T15:33:07Z","updated_at":"2018-04-18T15:33:07Z","author_association":"OWNER","body":"Sure, you can give it a try - it should be a relatively local and easy change. Take a look at TextHandler and adding byte[] support to it."}}
{"actor":{"display_login":"roji"}}