SPARK-4228 SchemaRDD to JSON

Here's a simple fix for SchemaRDD to JSON.
Sort imports (see https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide#SparkCodeStyleGuide-Imports).