anchor.diff:              true -> aai:serialize_subject(Identity);
               false -> deprecated_subject_to_json(Identity)
           end,
  -        <<"attributes">> => undefined_to_null(Attributes)
  +        <<"attributes">> => utils:undefined_to_null(Attributes)
       }.
   
   
  
positive.code:     #{
          <<"supportedVersions">> => SupportedVersions,
          <<"auth">> => client_auth_to_json(Auth),
          <<"sessionId">> => undefined_to_null(SessionId)
      }.
  
  
  
negative.code:     #gs_req_graph{
          gri = gri:deserialize(maps:get(<<"gri">>, PayloadJSON)),
          operation = string_to_operation(maps:get(<<"operation">>, PayloadJSON)),
          data = utils:null_to_undefined(maps:get(<<"data">>, PayloadJSON, #{})),
          subscribe = maps:get(<<"subscribe">>, PayloadJSON, false),
          auth_hint = json_to_auth_hint(maps:get(<<"authHint">>, PayloadJSON, null))
      }.
  