anchor.diff:          <<"spaceId">> => SpaceId,
           <<"userDetails">> => get_user_details(SessionId, UserId)
       },
  -    json_utils:encode(Body).
  +    json_utils:encode(filter_null_and_undefined_values(Body)).
   
   %%--------------------------------------------------------------------
   %% @private
  
positive.code: %% Constructs user details list.
  %% @end
  %%--------------------------------------------------------------------
  -spec get_user_details(session:id(), od_user:id()) -> UserDetails :: maps:map().
  get_user_details(SessionId, UserId) ->
      case user_logic:get_protected_data(SessionId, UserId) of
          {ok, #document{value = User}} ->
  
negative.code:         <<"storageId">> => StorageId,
          <<"storageName">> => StorageName
      },
      json_utils:encode(filter_null_and_undefined_values(Body)).
  
  %%--------------------------------------------------------------------
  %% @private
  