NSMutableDictionary的JSONRepresentation

Ste*_*ear 3 iphone json nsmutabledictionary

我想JSONRepresentation在一个NSMutableDictionary对象上调用该方法.我正在使用它[userDict JSONRepresentation];,但我收到以下警告:

NSMutableDictionary may not responsd to '-JSONRepresentation'
Run Code Online (Sandbox Code Playgroud)

谁能告诉我如何JSONRepresentationNSMutableDictionary类型的对象上正确调用该方法?

提前致谢.

jtb*_*des 7

JSONRepresentation方法来自json-framework.在项目中包含该框架并导入正确的标题,您应该很高兴.