Skip to content

allowing single quotes in 'in' filter with Jackson JSON provider #305

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

Conversation

plastic-karma
Copy link
Contributor

The filter values in the 'in' filter are treated as JSON. Single quotes in a JSON array are technically not valid JSON. Some JSON parsers allow it by default, others don't. Jackson does not. For consistency this pull-request enables single quotes for Jackson providers. This fixes #275

@jochenberger
Copy link
Contributor

jochenberger commented Mar 17, 2017

I don't think that this is how it should be fixed. IMHO, the JsonProvider is not/should not be responsible for parsing parts of the query.

@jochenberger
Copy link
Contributor

I created #314 with an alternate solution. Sorry for stealing your test. ;-)

@plastic-karma
Copy link
Contributor Author

You are right. Glad I could contribute the testcase :-)

@plastic-karma
Copy link
Contributor Author

Closing in favor of #314

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

Successfully merging this pull request may close these issues.

Can't use single quotes with Jackson, "in" predicate operator
2 participants