简体   繁体   中英

JSONRepresentation for NSMutableDictionary

I want to call the JSONRepresentation method on an NSMutableDictionary object. I'm calling it using [userDict JSONRepresentation]; , but I am getting the following warning:

NSMutableDictionary may not responsd to '-JSONRepresentation'

Could anyone tell me how to I can properly call the JSONRepresentation method on an object of the NSMutableDictionary type?

Thanks in advance.

The JSONRepresentation method comes from json-framework . Include that framework in your project and import the correct headers, and you should be good to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM