We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70234b6 commit dcf9bbaCopy full SHA for dcf9bba
compiler/cpp/src/generate/t_cocoa_generator.cc
@@ -356,7 +356,7 @@ string t_cocoa_generator::cocoa_thrift_imports() {
356
* JSON strings.
357
*/
358
string t_cocoa_generator::to_json_protocol() {
359
- return string() + "@protocol ThriftToJson\n"
+ return string() + "@protocol ThriftToJson <NSObject>\n"
360
+ "- (void) toJson: (NSMutableString *) builder;\n"
361
+ "@end\n\n";
362
}
0 commit comments