JSON deserialize
I'm receiving from API a "json" string that have double quotes in value, something like this
Is there a way that can I deserialize to an object?
8 Replies
try to preprocess it to fix it maybe? it's not valid json
ur receiving this exact line from the API?
yes
of course I just omit the real value
but it's the same structure
No i was talking about the
var response =
part, do you crop it out?yes
all i can think of that the solution to this is to use regex replace method to fix your json
it's will be hard
But I will try
regex gets easier when you get used to it