Open ktimothy opened 7 years ago
Probably just not implemented, I'll leave this open as a feature request, please feel free to contribute.
Grape < 1.0 uses multi_json, so just adding Oj
makes use of that everywhere. I think for > 1.0 that's the strategy you want to take, and it's fully supported, see https://github.com/ruby-grape/grape#json-and-xml-processors.
Well, Oj
was probably not the best example. I'll try to implement it tomorrow unless anything crashes =)
If I want, for instance, to use
Oj
library to parseJSON
,grape
does not allow me to do so.What are the reasons for that? Maybe we can allow custom coercions for
JSON
?