Below is the format of a sample JSON string currently returning and showing in Swagger UI . Is there a better way to get formatted JSON string returned and get displayed on UI without explicit String Replace function.
"IdentifierDetails": "{\"Id\":\"123456\",\"IdentifiedDate\":\"04/20/2020 1:24:35 PM\",\"Specification\":{\"City\":\"NEWYORK\",\"Country\":\"US\",\"FirstName\":\"Thomas\",\"LastName\":\"Paul\",\"Company\":\"AT&T\",\"InsuranceID\":\"1\2020\4566-7623245\"}}"
Expected:
"IdentifierDetails": "{"Id":"123456","IdentifiedDate":"04/20/2020 1:24:35 PM","Specification":{"City":"NEWYORK","Country":"US","FirstName":"Thomas","LastName":"Paul","Company":"AT&T","InsuranceID":"1\2020\4566-7623245"}}"