anchor.diff:      get_text_field_values_obj(Props, TAcc, []);
   
   get_text_field_values(Values, TAcc) when is_list(Values) ->
  -	ArrayLengthFieldEnabled = TAcc#tacc.array_length_field,
  +    Index_Array_Lengths = TAcc#tacc.index_array_lengths,
       NewPath = ["[]" | TAcc#tacc.path],
  -    NewTAcc = TAcc#tacc{array_length_field = ArrayLengthFieldEnabled, path = NewPath},
  -	case ArrayLengthFieldEnabled of 
  -		true ->
  -			% We bypass make_text_field and directly call make_text_field_name
  -		    % because the length field name is not part of the path.
  -		    LengthFieldName = make_text_field_name(NewTAcc#tacc.path, <<"length">>),
  -		    LengthField = [{LengthFieldName, <<"length">>, length(Values)}],
  -		    get_text_field_values_arr(Values, NewTAcc,LengthField);
  -		_ ->
  -			get_text_field_values_arr(Values, NewTAcc,[])
  -	end;
  +    NewTAcc = TAcc#tacc{index_array_lengths = Index_Array_Lengths, path = NewPath},
  +    case Index_Array_Lengths of 
  +        true ->
  +            % We bypass make_text_field and directly call make_text_field_name
  +            % because the length field name is not part of the path.
  +            LengthFieldName = make_text_field_name(NewTAcc#tacc.path, <<"length">>),
  +            LengthField = [{LengthFieldName, <<"length">>, length(Values)}],
  +            get_text_field_values_arr(Values, NewTAcc,LengthField);
  +        _ ->
  +            get_text_field_values_arr(Values, NewTAcc,[])
  +    end;
   get_text_field_values(Bin, TAcc) when is_binary(Bin) ->
       make_text_field(TAcc, <<"string">>, Bin);
   
  
positive.code: 
  
  -record(tacc, {
  	array_length_field = true,
      fields = all_fields,
      path = []
  }).
  
negative.code: get_text_field_values_obj([], _, FAcc) ->
      FAcc;
  get_text_field_values_obj([{Key, Val} | Rest], TAcc, FAcc) ->
      Index_Array_Lengths = TAcc#tacc.index_array_lengths,
      NewPath = [Key | TAcc#tacc.path],
      NewTAcc = TAcc#tacc{index_array_lengths = Index_Array_Lengths, path = NewPath},
      Fields = get_text_field_values(Val, NewTAcc),
      get_text_field_values_obj(Rest, TAcc, Fields ++ FAcc).
  
  