Complaint.toJSON is compatible with new API