anchor.diff:              maps:put(Name, insert(undefined, JsonToInsert, Rest), #{})
       end;
   insert(Json, JsonToInsert, [Name | Rest]) ->
  -    NameSize = byte_size(Name),
  -    IndexSize = NameSize - 2,
  +    IndexSize = get_index_size(Name),
       case Name of
           <<"[", Element:IndexSize/binary, "]">> when is_list(Json) ->
               Index = binary_to_integer(Element) + 1,
  
positive.code: insert(_Json, JsonToInsert, []) ->
      JsonToInsert;
  insert(undefined, JsonToInsert, [Name | Rest]) ->
      NameSize = byte_size(Name),
      IndexSize = NameSize - 2,
      case Name of
          <<"[", Element:IndexSize/binary, "]">> ->
              Index = binary_to_integer(Element) + 1,
  
negative.code: 
  %%--------------------------------------------------------------------
  %% @doc
  %% Get byte size of json array index stored in binary: e. g. "[12]" -> 2
  %% @end
  %%--------------------------------------------------------------------
  -spec get_index_size(Name :: binary()) -> integer().
  get_index_size(Name) ->
      byte_size(Name) - 2.
  
  %%--------------------------------------------------------------------
  %% @doc
  %% Set nth element of list
  %% @end
  %%--------------------------------------------------------------------
  