module ActiveModelSerializers::Jsonapi

def self.parser

actionpack/lib/action_dispatch/http/parameters.rb
to the hash format expected by `ActiveModel::Serializers::JSON`
Proposal: should actually deserialize the JSON API params
def self.parser
  lambda do |body|
    data = JSON.parse(body)
    data = { _json: data } unless data.is_a?(Hash)
    data.with_indifferent_access
  end
end