Skip to content

How to remove \ from data having ' after parsing json

Rameez Javed

Rameez Javed

Asked Feb 8, 2019, 1:34 AM EST2 answers
Share
LinkedInX
Hi everyone,
I'm parsing json data and data contain some entries that have apostrophe like (Wooden's Hamble), whille parsing this i get error but i replace ' with \' from the query, now parsing goes fine but i get the name like (Wooden\'s Hamble), and i want to show data like Wooden's Hamble, wanna get rid of \ from name.
Thanks 

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Vivek Kumar
    0
    Hi Rameez,
    Are you seeing in the Visual Studio debugger's. Actually if you're using C#, it displays the string with the escape characters you would need to include to type that value as a string literal in your C# code. But those escape characters are not actually part of the string. 
    0
  • Rameez Javed
    0
    I'm parsing json data, while on deserialization i'm displaying it
    0