skip to Main Content

Add root element to response model – Asp.net

I'm writing an ASP.NET Core API, which should follow an existing format. The response should always start with a data element in the json { "data": { "batch_id": null, "created_at": "2019-01-29T16:58:04+00:00", "current_operation": null, "description": "This watch has a new name",…

VIEW QUESTION

How to attain 1 double quote only on Json format string in VB.Net – Asp.net

I have the Below JSON Result. "{""head"":{""clientID"":""100088optimumremit"",""reqTime"":""2022-01-20T15:06:58+08:00"",""reqMsgID"":""GcashValidate85"",""clientSecret"":""100088optimumremit""},""body"":{""merchantID"":""100088"",""codeString"":""123456"",""codeType"":""REFERENCE_CODE""}}" What I want is the below Result "{"head":{"clientID":"100088optimumremit","reqTime":"2022-01-20T15:06:58+08:00","reqMsgID":"GcashValidate85","clientSecret":"100088optimumremit"},"body":{"merchantID":"100088","codeString":"123456","codeType":"REFERENCE_CODE"}}" How do I attain the single quote (") only?

VIEW QUESTION
Back To Top
Search