skinny-framework / skinny-framework

:monorail: "Scala on Rails" - A full-stack web app framework for rapid development in Scala

Home Page:https://skinny-framework.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boolean PUT/POST JSON on SkinnyResource

pc3b3r opened this issue · comments

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.

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.