Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add adapter for vibe JSON #10

Open
NCrashed opened this issue Mar 17, 2015 · 1 comment
Open

Add adapter for vibe JSON #10

NCrashed opened this issue Mar 17, 2015 · 1 comment

Comments

@NCrashed
Copy link

I loves optional fields feature, but having two different types of JSON is tedious in web projects. Is there a possibility to add sub configuration to use vibe.data.json instead of std.json?

P.S. If the feature is implemented, adding support vibe.data.bson would be a piece of cake to implement.

@rcorre
Copy link
Owner

rcorre commented Mar 17, 2015

I'm not familiar with vibe.data.json, though at first glance it looks like there is a decent amount of crossover. What would the use case here be? Using @jsonize style attributes to control how vibe serializes things?

This does bring up a good point: I'd like to separate jsonizer's logic into two parts:

  1. Reflecting on serializeable types (identifying what members should be serialized and how)
  2. Actually performing serialization.

This would allow the back-end serializer to be swapped out without changing the API or reflection logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants