**string jsonString = JsonSerializer.Serialize(weatherForecast);**
How to serialize and deserialize JSON using C# - .NET
var serializeOptions = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
WriteIndented = true
};
jsonString = JsonSerializer.Serialize(weatherForecast, serializeOptions);
How to customize property names and values with System.Text.Json