{"action":"closed","issue":{"url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/13","labels_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/13/comments","events_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/13/events","html_url":"https://github.com/beauby/jsonapi-datastore/issues/13","id":115392016,"number":13,"title":"serialize to plain object?","user":{"login":"jamesdixon","id":110114,"avatar_url":"https://avatars.githubusercontent.com/u/110114?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesdixon","html_url":"https://github.com/jamesdixon","followers_url":"https://api.github.com/users/jamesdixon/followers","following_url":"https://api.github.com/users/jamesdixon/following{/other_user}","gists_url":"https://api.github.com/users/jamesdixon/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesdixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesdixon/subscriptions","organizations_url":"https://api.github.com/users/jamesdixon/orgs","repos_url":"https://api.github.com/users/jamesdixon/repos","events_url":"https://api.github.com/users/jamesdixon/events{/privacy}","received_events_url":"https://api.github.com/users/jamesdixon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-05T22:41:36Z","updated_at":"2015-11-05T23:18:05Z","closed_at":"2015-11-05T23:18:05Z","body":"Hi,\r\n\r\nIn my other issue, I mentioned that my fork was customized to add another `serialize()` method that would serialize the contents of the store to plain javascript objects that could be then used to pass into my ORM. I know it may be an edge case, but wanted to see if there was any interest in supporting such a thing? Essentially, I'm just creating a plain javascript object that contains `attributes` and `relationships` and can then be passed almost directly into my ORM (Bookshelf). The reason for doing this was because the `JsonApiDataStoreModel` contained a handful of methods and properties that were clogging things up a bit when I passed it around, which means I would have to rip those out before passing them in.\r\n\r\nIf this is something that you can see to be valuable, more than willing to create a PR with the code I created.\r\n\r\nBest,\r\nJames"}}