Getting warning in iPhone: NSString may not respond to '-JSONValue'
Asked Answered
P

3

7

In my iPhone app, I am making an access to the webserver to fetch the data.

Here I am using JSON to retrieve the data from database.

I get a warning that says:

NSString may not respond to '-JSONValue'

How to resolve it?

Paigepaik answered 12/1, 2011 at 13:0 Comment(2)
Worth having a look at this page for additional tips.Mishnah
See my response in #10380359Cotswold
C
9

Add this #import "JSON.h" at the top of your .m or .h file.

Casket answered 12/1, 2011 at 13:11 Comment(0)
R
2

Have you tried to add JSON Library to your project and import it

#import "JSON/JSON.h"
Renae answered 12/1, 2011 at 13:10 Comment(0)
J
1

You probably just miss the include to your JSON library

Johnathon answered 12/1, 2011 at 13:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.