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

Boolean PUT/POST JSON on SkinnyResource #260

Open
pc3b3r opened this issue May 14, 2015 · 1 comment
Open

Boolean PUT/POST JSON on SkinnyResource #260

pc3b3r opened this issue May 14, 2015 · 1 comment
Labels

Comments

@pc3b3r
Copy link

pc3b3r commented May 14, 2015

When I GET a model from /#.json there are no problems. Using the result from GET to POST/PUT I get the following error :

Failed to parse JSON body because Do not know how to convert JBool(false) into class java.lang.String

It seems that boolean values should be double-quoted or converted to 0/1.

@seratch
Copy link
Member

seratch commented May 16, 2015

Thanks. To be honest, accepting params as JSON body is not well tested. We should check it more. If you have time, please help us by writing tests for improving the framework.

@seratch seratch added the bug label May 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants