module Faraday::DecodeMethods

def prepare_context(context, subkey, is_array, last_subkey)

def prepare_context(context, subkey, is_array, last_subkey)
  if !last_subkey || is_array
    context = new_context(subkey, is_array, context)
  end
  if context.is_a?(Array) && !is_array
    context = match_context(context, subkey)
  end
  context
end