setResponseJSON (method)
Sets a string to be served as a JSON response.
Syntax
- (void)setResponseJSON:(long long)connectionId :(NSString*)data;
public func setResponseJSON(_ connectionId: Int64, _ data: String) throws -> Void
Remarks
Use this property to provide the JSON response content in a string.