Jaison Peter
asked on
Replacing issue in json
PS: This issue is only happening when i see result in swagger ui , i visual studio it looks fine.
I am trying to replace the string which i have
\\/Date(1430370000000+0530 )\\/
to
\/Date(1430370000000+0530) \/
Code:
string str = "\\/Date(1430370000000+053 0)\\/";
str = str.Replace(@"\","\\");
Console.WriteLine(str);
See here the code running environment, click here
Output i am getting above is this :
\/Date(1430370000000+0530) \/
But while we pass the value in JSON property.
The value automatically converts to below value
/Date(1430370000000+0530)\ \/
But I am expecting the same value which I got earlier
\/Date(1430370000000+0530) \/
I am trying to replace the string which i have
\\/Date(1430370000000+0530
to
\/Date(1430370000000+0530)
Code:
string str = "\\/Date(1430370000000+053
str = str.Replace(@"\","\\");
Console.WriteLine(str);
See here the code running environment, click here
Output i am getting above is this :
\/Date(1430370000000+0530)
But while we pass the value in JSON property.
The value automatically converts to below value
/Date(1430370000000+0530)\
But I am expecting the same value which I got earlier
\/Date(1430370000000+0530)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Question is inactive