class Faraday::Request::Json

def on_request(env)

def on_request(env)
  match_content_type(env) do |data|
    env[:body] = encode(data)
  end
end