I want to use YAJL to render JSON. If I require 'yajl'
in the controller and perform a render :json => some_hash
, will this use YAJL to encode the hash into json? Should I convert the hash to JSON using YAJL's encode method before calling render?
If not, how can I go about doing this?