SPARK-4228 SchemaRDD to JSON

Here's a simple fix for SchemaRDD to JSON.
I'm not sure I understand: would that be placing the rowToJSON method in JsonRDD, or as a separate object for import into SchemaRDD?