can now serialize a BasicOperator to json