anchor.diff:      Metadata;
   encode_metadata(Metadata) when is_map(Metadata) ->
       json_utils:encode(Metadata).
  +
  +
  +maybe_decode_json(MaybeEncodedJson) ->
  +    try
  +        json_utils:decode(MaybeEncodedJson)
  +    catch _:_ ->
  +        MaybeEncodedJson
  +    end.
   
   
   set_all_metadata_types(Node, SessionId, Guid, set_1) ->
  
positive.code: 
  init_per_testcase(_Case, Config) ->
      initializer:mock_share_logic(Config),
      ct:timetrap({minutes, 30}),
      lfm_proxy:init(Config).
  
  
  
negative.code:         required = [<<"metadata">>],
          optional = [<<"filter_type">>, <<"filter">>],
          correct_values = #{
              <<"metadata">> => [ExampleJson],
              <<"filter_type">> => [<<"keypath">>],
              <<"filter">> => [
                  <<"attr1.[1]">>,        % Test setting attr in existing array
  