Description
We currently serialize .NET enums into JSON as their string label; this is:
- Incompatible with the behavior of System.Text.Json and Newtonsoft.Json, which serialize to the underlying int value.
- Incompatible with our relational behavior, which also value-converts to the int value. This notably means that it's impossible to compare an enum value inside JSON with another enum value outside of JSON in a LINQ query.