SPARK-4228 SchemaRDD to JSON

Here's a simple fix for SchemaRDD to JSON.
Indenting and line spacing are kinda messed up here.