How do I serialize a C# anonymous type to a JSON string? How do I serialize a C# anonymous type to a JSON string? json json