In my iPhone application, I am accessing a web server to retrieve data.
Here I use JSON to retrieve data from a database.
I get a warning saying:
NSString may not respond to '-JSONValue'
How to solve it?
Add this #import "JSON.h" at the top of your .m or .h file.
#import "JSON.h"
.m
.h
You tried to add the JSON Library to your project and import it
#import "JSON/JSON.h"
You probably just skip the inclusion of JSON in your library.