Unexpected behavior when serializing enum values to JSON in C# with System.Text.Json
I'm sure I'm missing something obvious here, but I'm using .NET 6 and trying to serialize an enum to JSON using the `System.Text.Json` library. My enum looks like this: ```csharp public enum Status { Pending, Approved, Rejected } ``` When I serialize an object that contains this enum, I expect it to convert the enum to its string representation in the JSON. However, I am getting the numeric value instead. The object I am trying to serialize is as follows: ```csharp public class Request { public int Id { get; set; } public Status CurrentStatus { get; set; } } ``` When I use the following code to serialize: ```csharp var request = new Request { Id = 1, CurrentStatus = Status.Approved }; var json = JsonSerializer.Serialize(request); Console.WriteLine(json); ``` I get the output: ```json {"Id":1,"CurrentStatus":1} ``` Instead of: ```json {"Id":1,"CurrentStatus":"Approved"} ``` I have tried adding the `JsonStringEnumConverter` to my serialization options: ```csharp var options = new JsonSerializerOptions { Converters = { new JsonStringEnumConverter() } }; var json = JsonSerializer.Serialize(request, options); ``` But I still see the same numeric output. I have also verified that my using directives are correct, importing `System.Text.Json` and `System.Text.Json.Serialization`. Any ideas on what I might be missing or doing incorrectly? I want to ensure that my enums are serialized as their string representations in JSON, and this behavior is crucial for my API response structure. For context: I'm using C# on macOS. My development environment is Ubuntu 22.04. How would you solve this? For reference, this is a production mobile app.