I'm converting NSString to NSDictionary however when I step inside a variable it always returns null.
What I'm doing:
NSDictionary *json =
[NSJSONSerialization JSONObjectWithData: [body dataUsingEncoding:NSUTF8StringEncoding]
options: NSJSONReadingMutableContainers
error: nil];
Where body is my variable, but if I put the contents of it there everything works normal!
What could be happening?
conteúdo da variável: @"{\"teste\" : \"ehtetra\"}"