ruby-grape/grape-active_model_serializers

1.3.1 breaks hash in response

Closed this issue · 1 comments

This code:

get 'test' do
    {test: 1}
end

produces [["test",1]] in version 1.3.1, instead of the expected result {"test":1}.

If I turn off the formatter :json, Grape::Formatter::ActiveModelSerializers, then the result is correct.

It is an issue in active_model_serializers.