in src/ServiceProfiler.EventPipe.Otel/Microsoft.ApplicationInsights.Profiler.Shared/Services/HighPerfJsonSerializationProvider.cs [21:38]
public bool TryDeserialize<T>(string serialized, out T? obj)
{
obj = default;
if (string.IsNullOrEmpty(serialized))
{
return false;
}
try
{
obj = JsonSerializer.Deserialize<T>(serialized, s_serializerOptions);
return true;
}
catch (JsonException)
{
return false;
}
}