C#C
C#4y ago
11 replies
Messiah

❔ Do I need a model to serialize a json async?

My http response message is a big random json that I just want to convert to a string. The JsonSerializer.SerializeAsync() requires me to pass a model as argument. I can't provide a model because I don't know what the response will be.

I'm more curious about why a model is required than the solution honestly
Was this page helpful?