skip to Main Content

JSON is getting serialized with WriteAsJsonAsync

I am calling an API with : content = await request.Content.ReadAsStringAsync(); var response = req.CreateResponse(request.StatusCode); await response.WriteAsJsonAsync(content, request.StatusCode); return response; and it seems to be ok and working but the JSON is coming out like this: "{"Policy_reference":"P12300025"}" full code: var…

VIEW QUESTION

What is "an alternate pipeline" in ASP.NET Core?

Reading the docs for UseExceptionHandler extension method that adds standard exception handler middleware, I see following description: UseExceptionHandler(IApplicationBuilder) Adds a middleware to the pipeline that will catch exceptions, log them, and re-execute the request in an alternate pipeline. The request…

VIEW QUESTION
Back To Top
Search