class Aws::Json::Parser

def parse_ref(ref, value, target = nil)

def parse_ref(ref, value, target = nil)
  if value.nil?
    nil
  else
    case ref.shape
    when StructureShape then structure(ref, value, target)
    when ListShape then list(ref, value, target)
    when MapShape then map(ref, value, target)
    when TimestampShape then time(value)
    when BlobShape then Base64.decode64(value)
    when BooleanShape then value.to_s == 'true'
    else value
    end
  end
end