spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Pfeiffer <...@preferred.jp>
Subject Re: Mapping SchemaRDD/Row to JSON
Date Tue, 11 Nov 2014 01:10:24 GMT
Akshat

On Tue, Nov 11, 2014 at 4:12 AM, Akshat Aranya <aaranya@gmail.com> wrote:
>
> Does there exist a way to serialize Row objects to JSON.
>

I can't think of any other way than the one you proposed.  A Row is more or
less an Array[Object], so you need to read JSON key and data type from the
schema.

Tobias

Mime
View raw message