// Object decodes the JSON value within an object or an array to a UnmarshalerJSONObject.
195694
func (dec *Decoder) Object(value UnmarshalerJSONObject) error {
	initialKeysDone := dec.keysDone
	initialChild := dec.child
	dec.keysDone = 0
	dec.called = 0
	dec.child |= 1
	newCursor, err := dec.decodeObject(value)
	if err != nil {
		return err
	}
	dec.cursor = newCursor
	dec.keysDone = initialKeysDone
	dec.child = initialChild
	dec.called |= 1
	return nil
}
929623
func (l *GuardDutyFilterConditionList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := GuardDutyFilterCondition{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = GuardDutyFilterConditionList{item}
		return nil
	}
	list := []GuardDutyFilterCondition{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = GuardDutyFilterConditionList(list)
		return nil
	}
	return err
}
1126873
func (l *EC2SecurityGroupEgressPropertyList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EC2SecurityGroupEgressProperty{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EC2SecurityGroupEgressPropertyList{item}
		return nil
	}
	list := []EC2SecurityGroupEgressProperty{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EC2SecurityGroupEgressPropertyList(list)
		return nil
	}
	return err
}
1363445
func (l *WAFXSSMatchSetFieldToMatchList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := WAFXSSMatchSetFieldToMatch{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = WAFXSSMatchSetFieldToMatchList{item}
		return nil
	}
	list := []WAFXSSMatchSetFieldToMatch{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = WAFXSSMatchSetFieldToMatchList(list)
		return nil
	}
	return err
}
1343926
func (l *SSMPatchBaselinePatchFilterGroupList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := SSMPatchBaselinePatchFilterGroup{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = SSMPatchBaselinePatchFilterGroupList{item}
		return nil
	}
	list := []SSMPatchBaselinePatchFilterGroup{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = SSMPatchBaselinePatchFilterGroupList(list)
		return nil
	}
	return err
}
589627
func (j *JsonQuery) Object(s ...string) (map[string]interface{}, error) {
	val, err := rquery(j.blob, s...)
	if err != nil {
		return map[string]interface{}{}, err
	}
	return objectFromInterface(val)
}
867889
func (c *Connection) Object(container string, objectName string) (info Object, headers Headers, err error) {
	err = withLORetry(0, func() (Headers, int64, error) {
		info, headers, err = c.objectBase(container, objectName)
		if err != nil {
			return headers, 0, err
		}
		return headers, info.Bytes, nil
	})
	return
}
476416
func (r *Repository) Object(t plumbing.ObjectType, h plumbing.Hash) (object.Object, error) {
	obj, err := r.Storer.EncodedObject(t, h)
	if err != nil {
		return nil, err
	}

	return object.DecodeObject(r.Storer, obj)
}
712773
func (l *SSMMaintenanceWindowTaskMaintenanceWindowLambdaParametersList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := SSMMaintenanceWindowTaskMaintenanceWindowLambdaParameters{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = SSMMaintenanceWindowTaskMaintenanceWindowLambdaParametersList{item}
		return nil
	}
	list := []SSMMaintenanceWindowTaskMaintenanceWindowLambdaParameters{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = SSMMaintenanceWindowTaskMaintenanceWindowLambdaParametersList(list)
		return nil
	}
	return err
}
865899
func (l *GlueClassifierGrokClassifierList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := GlueClassifierGrokClassifier{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = GlueClassifierGrokClassifierList{item}
		return nil
	}
	list := []GlueClassifierGrokClassifier{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = GlueClassifierGrokClassifierList(list)
		return nil
	}
	return err
}
830495
func (l *CodeCommitRepositoryRepositoryTriggerList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := CodeCommitRepositoryRepositoryTrigger{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = CodeCommitRepositoryRepositoryTriggerList{item}
		return nil
	}
	list := []CodeCommitRepositoryRepositoryTrigger{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = CodeCommitRepositoryRepositoryTriggerList(list)
		return nil
	}
	return err
}
1091953
func (l *EMRInstanceGroupConfigAutoScalingPolicyList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EMRInstanceGroupConfigAutoScalingPolicy{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EMRInstanceGroupConfigAutoScalingPolicyList{item}
		return nil
	}
	list := []EMRInstanceGroupConfigAutoScalingPolicy{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EMRInstanceGroupConfigAutoScalingPolicyList(list)
		return nil
	}
	return err
}
679953
func (l *AutoScalingAutoScalingGroupLifecycleHookSpecificationList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := AutoScalingAutoScalingGroupLifecycleHookSpecification{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = AutoScalingAutoScalingGroupLifecycleHookSpecificationList{item}
		return nil
	}
	list := []AutoScalingAutoScalingGroupLifecycleHookSpecification{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = AutoScalingAutoScalingGroupLifecycleHookSpecificationList(list)
		return nil
	}
	return err
}
846468
func (l *ElasticLoadBalancingV2ListenerCertificatePropertyList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := ElasticLoadBalancingV2ListenerCertificateProperty{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = ElasticLoadBalancingV2ListenerCertificatePropertyList{item}
		return nil
	}
	list := []ElasticLoadBalancingV2ListenerCertificateProperty{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = ElasticLoadBalancingV2ListenerCertificatePropertyList(list)
		return nil
	}
	return err
}
1078376
func (l *EMRInstanceGroupConfigScalingActionList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EMRInstanceGroupConfigScalingAction{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EMRInstanceGroupConfigScalingActionList{item}
		return nil
	}
	list := []EMRInstanceGroupConfigScalingAction{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EMRInstanceGroupConfigScalingActionList(list)
		return nil
	}
	return err
}
918730
func (l *EMRInstanceGroupConfigCloudWatchAlarmDefinitionList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EMRInstanceGroupConfigCloudWatchAlarmDefinition{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EMRInstanceGroupConfigCloudWatchAlarmDefinitionList{item}
		return nil
	}
	list := []EMRInstanceGroupConfigCloudWatchAlarmDefinition{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EMRInstanceGroupConfigCloudWatchAlarmDefinitionList(list)
		return nil
	}
	return err
}
1205945
func (l *EMRStepKeyValueList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EMRStepKeyValue{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EMRStepKeyValueList{item}
		return nil
	}
	list := []EMRStepKeyValue{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EMRStepKeyValueList(list)
		return nil
	}
	return err
}