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

option for string keys in returned documents #72

Open
yogthos opened this issue Oct 19, 2012 · 4 comments
Open

option for string keys in returned documents #72

yogthos opened this issue Oct 19, 2012 · 4 comments

Comments

@yogthos
Copy link

yogthos commented Oct 19, 2012

Currently, when deserializing JSON clutch specifies true for parsing out keys in maps as keywords. However, this can result in malformed keys in cases where key strings have spaces or other illegal characters. It would be nice to have an option to return keys as strings instead.

@cemerick
Copy link
Contributor

Agreed. This should be a supported configuration option in the db/url map passed to each database operation (defaulting to true).

@jasonab
Copy link

jasonab commented Jun 4, 2013

If we're going to add in this option, being able to pass a conversion function would also be helpful.

@yogthos
Copy link
Author

yogthos commented Jun 4, 2013

I think it would make sense to expose the parameters Cheshire accepts, also would be good to update to latest Cheshire. :)

@fmind
Copy link

fmind commented Dec 20, 2017

+1, I (sadly) can't use clutch at the moment due to this issue

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

4 participants