3.67Handling Double Serialization of Response JSON

Created on Aug 17, 2026~2 min read

When performing HTTP remote communication with a third-party API, in very rare cases you may encounter JSON data returned by the server that has been accidentally double-serialized (sometimes it may even be intentional). For example, the server should have returned "{\"id\":1,\"name\":\"furion\"}", but due to double serialization it became "\"{\\\"id\\\":10, \\\"name\\\":\\\"furion\\\"}\"". For such cases, the framework provides unwrapping support:

cs
var content = await httpRemoteService.SendAsAsync<YourModel>(    HttpRequestBuilder.Get("https://furion.net").UseJsonResponseStringUnwrap());

By calling the UseJsonResponseStringUnwrap() method, you enable unwrapping of the JSON response content, which correctly converts the double-serialized JSON string into the target type (YourModel).