SPARK-4228 SchemaRDD to JSON

Here's a simple fix for SchemaRDD to JSON.
I was just thinking of moving the `rowToJSON` method to JsonRDD.