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 to_json method #111

Open
ansarizafar opened this issue Sep 20, 2017 · 2 comments
Open

Add to_json method #111

ansarizafar opened this issue Sep 20, 2017 · 2 comments

Comments

@ansarizafar
Copy link

Please add a to_json method to resultset/Query result object to provide automatic json conversion.

@bcardiff
Copy link
Collaborator

A db can hold more values than then json format can represent. And there are not always a clear winner on how to encode it.

Meanwhile https://manas.tech/blog/2017/01/16/from-a-db-to-json-with-crystal.html might offer some alternatives to handle within the scope of the app you are working on.

@ansarizafar
Copy link
Author

Please check this project https://github.com/akwiatkowski/crystal_api for Postgresql type conversion.

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