It's a bit more complex than that.  yk_JSONString will work on dictionaries, arrays, and custom objects, so it needs to be a category on NSObject.  yk_JSONObject could be a category on NSData and NSString