anchor.diff:                  end}
               end, WindowsJson)
           end, SliceJson)
  -    };
  +    }.
   
  -from_json(Layout) ->
  -    #time_series_layout_get_result{layout = Layout}.
  -    
  +
  +%%--------------------------------------------------------------------
  +%% @doc
  +%% Handles GET with "application/cdmi-object" content-type
  +%% @TODO VFS-9589 - use to_json/1 after average metric aggregator is introduced
  +%% @end
  +%%--------------------------------------------------------------------
  +-spec translate_for_gui(record()) -> json_utils:json_term().
  +translate_for_gui(#time_series_layout_get_result{} = TSBrowseResult) ->
  +    to_json(TSBrowseResult);
  +translate_for_gui(#time_series_slice_get_result{slice = Slice}) ->
  +    #{
  +        <<"slice">> => tsc_structure:map(fun(_TimeSeriesName, _MetricName, Windows) ->
  +            lists:map(fun({Timestamp, Value}) ->
  +                #{
  +                    <<"timestamp">> => Timestamp,
  +                    <<"value">> => case Value of
  +                        {_Count, Aggregated} -> Aggregated;
  +                        Aggregated -> Aggregated
  +                    end
  +                }
  +            end, Windows)
  +        end, Slice)
  +    }.
positive.code: 
  
  -spec from_json(json_utils:json_term()) -> record().
  from_json(#{<<"windows">> := SliceJson}) ->
      #time_series_slice_get_result{slice = 
          tsc_structure:map(fun(_TimeSeriesName, _MetricName, WindowsJson) ->
              lists:map(fun(#{<<"timestamp">> := Timestamp, <<"value">> := Value}) ->
  
negative.code: 
  %% API
  -export([to_json/1, from_json/1]).
  -export([translate_for_gui/1]).
  
  -include("time_series/browsing.hrl").
  
  