toJSON converts any DATASET data type instance into a JSON text instance. Syntax DATASET_expression.toJSON ()