{"action":"created","issue":{"url":"https://api.github.com/repos/beakerbrowser/webdb/issues/29","repository_url":"https://api.github.com/repos/beakerbrowser/webdb","labels_url":"https://api.github.com/repos/beakerbrowser/webdb/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/beakerbrowser/webdb/issues/29/comments","events_url":"https://api.github.com/repos/beakerbrowser/webdb/issues/29/events","html_url":"https://github.com/beakerbrowser/webdb/issues/29","id":330766364,"node_id":"MDU6SXNzdWUzMzA3NjYzNjQ=","number":29,"title":"Enhancement: Add ability to pass in custom parser.","user":{"login":"austinfrey","id":11063598,"node_id":"MDQ6VXNlcjExMDYzNTk4","avatar_url":"https://avatars0.githubusercontent.com/u/11063598?v=4","gravatar_id":"","url":"https://api.github.com/users/austinfrey","html_url":"https://github.com/austinfrey","followers_url":"https://api.github.com/users/austinfrey/followers","following_url":"https://api.github.com/users/austinfrey/following{/other_user}","gists_url":"https://api.github.com/users/austinfrey/gists{/gist_id}","starred_url":"https://api.github.com/users/austinfrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinfrey/subscriptions","organizations_url":"https://api.github.com/users/austinfrey/orgs","repos_url":"https://api.github.com/users/austinfrey/repos","events_url":"https://api.github.com/users/austinfrey/events{/privacy}","received_events_url":"https://api.github.com/users/austinfrey/received_events","type":"User","site_admin":false},"labels":[{"id":654830259,"node_id":"MDU6TGFiZWw2NTQ4MzAyNTk=","url":"https://api.github.com/repos/beakerbrowser/webdb/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-08T18:52:36Z","updated_at":"2018-06-08T21:28:22Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Curious to know if 'WebDB' would be open to a pull request allowing for the ability to pass in a  custom file parser. Specifically, I'd like to use [smarkt](https://github.com/jondashkyle/smarkt/blob/master/readme.md), but it looks like anything that implements a `stringify` method that can consume JSON and a `parse` method that spits out JSON, should work correctly. Happy to help if it's a useful idea, no worries if not :)\r\n\r\ni.e.\r\n```javascript\r\nvar db = new WebDB('dat:// 494898...', { parser: require('smarkt') })\r\n```"},"comment":{"url":"https://api.github.com/repos/beakerbrowser/webdb/issues/comments/395895735","html_url":"https://github.com/beakerbrowser/webdb/issues/29#issuecomment-395895735","issue_url":"https://api.github.com/repos/beakerbrowser/webdb/issues/29","id":395895735,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTg5NTczNQ==","user":{"login":"pfrazee","id":1270099,"node_id":"MDQ6VXNlcjEyNzAwOTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1270099?v=4","gravatar_id":"","url":"https://api.github.com/users/pfrazee","html_url":"https://github.com/pfrazee","followers_url":"https://api.github.com/users/pfrazee/followers","following_url":"https://api.github.com/users/pfrazee/following{/other_user}","gists_url":"https://api.github.com/users/pfrazee/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrazee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrazee/subscriptions","organizations_url":"https://api.github.com/users/pfrazee/orgs","repos_url":"https://api.github.com/users/pfrazee/repos","events_url":"https://api.github.com/users/pfrazee/events{/privacy}","received_events_url":"https://api.github.com/users/pfrazee/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T21:28:22Z","updated_at":"2018-06-08T21:28:22Z","author_association":"MEMBER","body":"Hah all good, I def spent half a second going \"oh yeah that's a good idea\" and then I remembered"}}
{"actor":{"display_login":"pfrazee"}}