added toJSON to SchemaRDD