Batman.Request sends data as HTTP form data. However, you can override this with
serializeAsForm: false to
@persist in your model definition:
Now, it will work with any JSON endpoint!
In my case, I was trying out batman.js and Martini, and I was surprised to find that RestStorage sends form data. I guess you never notice with Rails, since it puts everything into the