intridea/grape — pull request #618 by mbleigh (2014-04-06 21:43:48+00:00)
Title: Allow JSON formatter to return a blank body

I think most users expect that `body ''` or `return nil` will end up with a blank response, but the current JSON formatter put it as `""` instead. This fixes that.

Made it a pull because I want to make sure no one is depending on it returning a blank string. Technically JSON is only valid if it's an Object or Array, but there may be a use case I'm not thinking of.