{"action":"created","comment":{"url":"https://api.github.com/repos/commanded/eventstore/pulls/comments/243817427","pull_request_review_id":187683119,"id":243817427,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzgxNzQyNw==","diff_hunk":"@@ -0,0 +1,32 @@\n+if (Code.ensure_loaded?(Jason)) do\n+  defmodule EventStore.JsonSerializer do\n+    @moduledoc \"\"\"\n+    A serializer that uses the JSON format.\n+    \"\"\"\n+\n+    @behaviour EventStore.Serializer\n+\n+    @doc \"\"\"\n+    Serialize given term to JSON binary data.\n+    \"\"\"\n+    def serialize(term) do\n+      Jason.encode!(term)\n+    end\n+\n+    @doc \"\"\"\n+    Deserialize given JSON binary data to the expected type.\n+    \"\"\"\n+    def deserialize(binary, config) do\n+      type =\n+        case Keyword.get(config, :type, nil) do\n+          nil -> []\n+          type -> type |> String.to_existing_atom() |> struct\n+        end\n+\n+      case type do\n+        [] -> Jason.decode!(binary)\n+        type -> struct(type, Jason.decode!(binary, keys: :atoms))","path":"lib/event_store/json_serializer.ex","position":28,"original_position":28,"commit_id":"3ad55fa730183457fd6c30e4191a25455a51977f","original_commit_id":"3ad55fa730183457fd6c30e4191a25455a51977f","user":{"login":"vasspilka","id":3274419,"node_id":"MDQ6VXNlcjMyNzQ0MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3274419?v=4","gravatar_id":"","url":"https://api.github.com/users/vasspilka","html_url":"https://github.com/vasspilka","followers_url":"https://api.github.com/users/vasspilka/followers","following_url":"https://api.github.com/users/vasspilka/following{/other_user}","gists_url":"https://api.github.com/users/vasspilka/gists{/gist_id}","starred_url":"https://api.github.com/users/vasspilka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasspilka/subscriptions","organizations_url":"https://api.github.com/users/vasspilka/orgs","repos_url":"https://api.github.com/users/vasspilka/repos","events_url":"https://api.github.com/users/vasspilka/events{/privacy}","received_events_url":"https://api.github.com/users/vasspilka/received_events","type":"User","site_admin":false},"body":"On it","created_at":"2018-12-24T11:35:00Z","updated_at":"2018-12-24T11:35:00Z","html_url":"https://github.com/commanded/eventstore/pull/144#discussion_r243817427","pull_request_url":"https://api.github.com/repos/commanded/eventstore/pulls/144","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/commanded/eventstore/pulls/comments/243817427"},"html":{"href":"https://github.com/commanded/eventstore/pull/144#discussion_r243817427"},"pull_request":{"href":"https://api.github.com/repos/commanded/eventstore/pulls/144"}},"in_reply_to_id":243644280},"pull_request":{"url":"https://api.github.com/repos/commanded/eventstore/pulls/144","id":230467865,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNDY3ODY1","html_url":"https://github.com/commanded/eventstore/pull/144","diff_url":"https://github.com/commanded/eventstore/pull/144.diff","patch_url":"https://github.com/commanded/eventstore/pull/144.patch","issue_url":"https://api.github.com/repos/commanded/eventstore/issues/144","number":144,"state":"open","locked":false,"title":"Poison to Jason replacement & Postgrex update changes","user":{"login":"vasspilka","id":3274419,"node_id":"MDQ6VXNlcjMyNzQ0MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3274419?v=4","gravatar_id":"","url":"https://api.github.com/users/vasspilka","html_url":"https://github.com/vasspilka","followers_url":"https://api.github.com/users/vasspilka/followers","following_url":"https://api.github.com/users/vasspilka/following{/other_user}","gists_url":"https://api.github.com/users/vasspilka/gists{/gist_id}","starred_url":"https://api.github.com/users/vasspilka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasspilka/subscriptions","organizations_url":"https://api.github.com/users/vasspilka/orgs","repos_url":"https://api.github.com/users/vasspilka/repos","events_url":"https://api.github.com/users/vasspilka/events{/privacy}","received_events_url":"https://api.github.com/users/vasspilka/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-13T13:06:19Z","updated_at":"2018-12-24T11:35:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f97dbc2a938db467f49da48e154914f3f38e4ca3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/commanded/eventstore/pulls/144/commits","review_comments_url":"https://api.github.com/repos/commanded/eventstore/pulls/144/comments","review_comment_url":"https://api.github.com/repos/commanded/eventstore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/commanded/eventstore/issues/144/comments","statuses_url":"https://api.github.com/repos/commanded/eventstore/statuses/3ad55fa730183457fd6c30e4191a25455a51977f","head":{"label":"vasspilka:master","ref":"master","sha":"3ad55fa730183457fd6c30e4191a25455a51977f","user":{"login":"vasspilka","id":3274419,"node_id":"MDQ6VXNlcjMyNzQ0MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3274419?v=4","gravatar_id":"","url":"https://api.github.com/users/vasspilka","html_url":"https://github.com/vasspilka","followers_url":"https://api.github.com/users/vasspilka/followers","following_url":"https://api.github.com/users/vasspilka/following{/other_user}","gists_url":"https://api.github.com/users/vasspilka/gists{/gist_id}","starred_url":"https://api.github.com/users/vasspilka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasspilka/subscriptions","organizations_url":"https://api.github.com/users/vasspilka/orgs","repos_url":"https://api.github.com/users/vasspilka/repos","events_url":"https://api.github.com/users/vasspilka/events{/privacy}","received_events_url":"https://api.github.com/users/vasspilka/received_events","type":"User","site_admin":false},"repo":{"id":157027949,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcwMjc5NDk=","name":"eventstore","full_name":"vasspilka/eventstore","private":false,"owner":{"login":"vasspilka","id":3274419,"node_id":"MDQ6VXNlcjMyNzQ0MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3274419?v=4","gravatar_id":"","url":"https://api.github.com/users/vasspilka","html_url":"https://github.com/vasspilka","followers_url":"https://api.github.com/users/vasspilka/followers","following_url":"https://api.github.com/users/vasspilka/following{/other_user}","gists_url":"https://api.github.com/users/vasspilka/gists{/gist_id}","starred_url":"https://api.github.com/users/vasspilka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasspilka/subscriptions","organizations_url":"https://api.github.com/users/vasspilka/orgs","repos_url":"https://api.github.com/users/vasspilka/repos","events_url":"https://api.github.com/users/vasspilka/events{/privacy}","received_events_url":"https://api.github.com/users/vasspilka/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vasspilka/eventstore","description":"CQRS event store using PostgreSQL for persistence","fork":true,"url":"https://api.github.com/repos/vasspilka/eventstore","forks_url":"https://api.github.com/repos/vasspilka/eventstore/forks","keys_url":"https://api.github.com/repos/vasspilka/eventstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vasspilka/eventstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vasspilka/eventstore/teams","hooks_url":"https://api.github.com/repos/vasspilka/eventstore/hooks","issue_events_url":"https://api.github.com/repos/vasspilka/eventstore/issues/events{/number}","events_url":"https://api.github.com/repos/vasspilka/eventstore/events","assignees_url":"https://api.github.com/repos/vasspilka/eventstore/assignees{/user}","branches_url":"https://api.github.com/repos/vasspilka/eventstore/branches{/branch}","tags_url":"https://api.github.com/repos/vasspilka/eventstore/tags","blobs_url":"https://api.github.com/repos/vasspilka/eventstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vasspilka/eventstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vasspilka/eventstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/vasspilka/eventstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vasspilka/eventstore/statuses/{sha}","languages_url":"https://api.github.com/repos/vasspilka/eventstore/languages","stargazers_url":"https://api.github.com/repos/vasspilka/eventstore/stargazers","contributors_url":"https://api.github.com/repos/vasspilka/eventstore/contributors","subscribers_url":"https://api.github.com/repos/vasspilka/eventstore/subscribers","subscription_url":"https://api.github.com/repos/vasspilka/eventstore/subscription","commits_url":"https://api.github.com/repos/vasspilka/eventstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/vasspilka/eventstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/vasspilka/eventstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/vasspilka/eventstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/vasspilka/eventstore/contents/{+path}","compare_url":"https://api.github.com/repos/vasspilka/eventstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vasspilka/eventstore/merges","archive_url":"https://api.github.com/repos/vasspilka/eventstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vasspilka/eventstore/downloads","issues_url":"https://api.github.com/repos/vasspilka/eventstore/issues{/number}","pulls_url":"https://api.github.com/repos/vasspilka/eventstore/pulls{/number}","milestones_url":"https://api.github.com/repos/vasspilka/eventstore/milestones{/number}","notifications_url":"https://api.github.com/repos/vasspilka/eventstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vasspilka/eventstore/labels{/name}","releases_url":"https://api.github.com/repos/vasspilka/eventstore/releases{/id}","deployments_url":"https://api.github.com/repos/vasspilka/eventstore/deployments","created_at":"2018-11-10T22:41:32Z","updated_at":"2018-11-23T17:17:16Z","pushed_at":"2018-11-23T17:17:14Z","git_url":"git://github.com/vasspilka/eventstore.git","ssh_url":"git@github.com:vasspilka/eventstore.git","clone_url":"https://github.com/vasspilka/eventstore.git","svn_url":"https://github.com/vasspilka/eventstore","homepage":"","size":985,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"commanded:master","ref":"master","sha":"62d83981ca4292a4f38d9413bed95974db528abe","user":{"login":"commanded","id":31540302,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQwMzAy","avatar_url":"https://avatars1.githubusercontent.com/u/31540302?v=4","gravatar_id":"","url":"https://api.github.com/users/commanded","html_url":"https://github.com/commanded","followers_url":"https://api.github.com/users/commanded/followers","following_url":"https://api.github.com/users/commanded/following{/other_user}","gists_url":"https://api.github.com/users/commanded/gists{/gist_id}","starred_url":"https://api.github.com/users/commanded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commanded/subscriptions","organizations_url":"https://api.github.com/users/commanded/orgs","repos_url":"https://api.github.com/users/commanded/repos","events_url":"https://api.github.com/users/commanded/events{/privacy}","received_events_url":"https://api.github.com/users/commanded/received_events","type":"Organization","site_admin":false},"repo":{"id":52314174,"node_id":"MDEwOlJlcG9zaXRvcnk1MjMxNDE3NA==","name":"eventstore","full_name":"commanded/eventstore","private":false,"owner":{"login":"commanded","id":31540302,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQwMzAy","avatar_url":"https://avatars1.githubusercontent.com/u/31540302?v=4","gravatar_id":"","url":"https://api.github.com/users/commanded","html_url":"https://github.com/commanded","followers_url":"https://api.github.com/users/commanded/followers","following_url":"https://api.github.com/users/commanded/following{/other_user}","gists_url":"https://api.github.com/users/commanded/gists{/gist_id}","starred_url":"https://api.github.com/users/commanded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commanded/subscriptions","organizations_url":"https://api.github.com/users/commanded/orgs","repos_url":"https://api.github.com/users/commanded/repos","events_url":"https://api.github.com/users/commanded/events{/privacy}","received_events_url":"https://api.github.com/users/commanded/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/commanded/eventstore","description":"CQRS event store using PostgreSQL for persistence","fork":false,"url":"https://api.github.com/repos/commanded/eventstore","forks_url":"https://api.github.com/repos/commanded/eventstore/forks","keys_url":"https://api.github.com/repos/commanded/eventstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/commanded/eventstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/commanded/eventstore/teams","hooks_url":"https://api.github.com/repos/commanded/eventstore/hooks","issue_events_url":"https://api.github.com/repos/commanded/eventstore/issues/events{/number}","events_url":"https://api.github.com/repos/commanded/eventstore/events","assignees_url":"https://api.github.com/repos/commanded/eventstore/assignees{/user}","branches_url":"https://api.github.com/repos/commanded/eventstore/branches{/branch}","tags_url":"https://api.github.com/repos/commanded/eventstore/tags","blobs_url":"https://api.github.com/repos/commanded/eventstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/commanded/eventstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/commanded/eventstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/commanded/eventstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/commanded/eventstore/statuses/{sha}","languages_url":"https://api.github.com/repos/commanded/eventstore/languages","stargazers_url":"https://api.github.com/repos/commanded/eventstore/stargazers","contributors_url":"https://api.github.com/repos/commanded/eventstore/contributors","subscribers_url":"https://api.github.com/repos/commanded/eventstore/subscribers","subscription_url":"https://api.github.com/repos/commanded/eventstore/subscription","commits_url":"https://api.github.com/repos/commanded/eventstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/commanded/eventstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/commanded/eventstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/commanded/eventstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/commanded/eventstore/contents/{+path}","compare_url":"https://api.github.com/repos/commanded/eventstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/commanded/eventstore/merges","archive_url":"https://api.github.com/repos/commanded/eventstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/commanded/eventstore/downloads","issues_url":"https://api.github.com/repos/commanded/eventstore/issues{/number}","pulls_url":"https://api.github.com/repos/commanded/eventstore/pulls{/number}","milestones_url":"https://api.github.com/repos/commanded/eventstore/milestones{/number}","notifications_url":"https://api.github.com/repos/commanded/eventstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/commanded/eventstore/labels{/name}","releases_url":"https://api.github.com/repos/commanded/eventstore/releases{/id}","deployments_url":"https://api.github.com/repos/commanded/eventstore/deployments","created_at":"2016-02-22T23:31:46Z","updated_at":"2018-12-20T10:34:41Z","pushed_at":"2018-12-11T14:52:11Z","git_url":"git://github.com/commanded/eventstore.git","ssh_url":"git@github.com:commanded/eventstore.git","clone_url":"https://github.com/commanded/eventstore.git","svn_url":"https://github.com/commanded/eventstore","homepage":"","size":987,"stargazers_count":444,"watchers_count":444,"language":"Elixir","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":54,"open_issues":18,"watchers":444,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/commanded/eventstore/pulls/144"},"html":{"href":"https://github.com/commanded/eventstore/pull/144"},"issue":{"href":"https://api.github.com/repos/commanded/eventstore/issues/144"},"comments":{"href":"https://api.github.com/repos/commanded/eventstore/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/commanded/eventstore/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/commanded/eventstore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/commanded/eventstore/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/commanded/eventstore/statuses/3ad55fa730183457fd6c30e4191a25455a51977f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vasspilka"}}