I'm working in C# . here I often need to convert Json that is written in C# to its regular string format, Like this C# string to
"{" +
"\"grant_type\": \"password\"," +
"\"client_id\": 2," +
"\"client_secret\": \"ClientSecretHere\"," +
"\"username\": \"[email protected]\"," +
"\"password\": \"somepassword\" " +
"}";
its regular string equivalent
"{
"grant_type": "password",
"client_id": 2,
"client_secret":"ClientSecretHere",
"username": "[email protected]",
"password": "somepassword"
}"
I've searched a lot on internet but everyone is talking about the conversion from Json to C# or C# to json . Is there any good programmatic solution for this ?