SPARK-4228 SchemaRDD to JSON

Here's a simple fix for SchemaRDD to JSON.
Sure thing.

On Wed, Nov 19, 2014 at 1:34 PM, Davies Liu <notifications@github.com>
wrote:

> In python/pyspark/sql.py:
>
> > @@ -1870,6 +1870,10 @@ def limit(self, num):
> >          rdd = self._jschema_rdd.baseSchemaRDD().limit(num).toJavaSchemaRDD()
> >          return SchemaRDD(rdd, self.sql_ctx)
> >
> > +    def toJSON(self, use_unicode=False):
> > +        rdd = self._jschema_rdd.baseSchemaRDD().toJSON()
>
> Could you put some simple tests (also will be examples in docs) here?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/spark/pull/3213/files#r20609235>.
>