79458966

Date: 2025-02-22 02:04:45
Score: 1.5
Natty:
Report link

This problem occurs when we migrate Azure function from .NET6 to .NET8, route cause of this problem is in .NET8, support of using System.Text.Json has been removed and recommended way is to use using Newtonsoft.Json

Bug code - string json = JsonSerializer.Serialize(object);
New Code - string json = JsonConvert.SerializeObject<ModelType>(object);

#ernavjyot

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Navjyot