RDD is just a wrap of the scala collection, Maybe you can use the .collect() method to get the scala collection type, you can then transfer to a JSON object using the Scala method.
- How to convert RDD to JSON? YaoPau
- Re: How to convert RDD to JSON? Yin Huai
- Re: How to convert RDD to JSON? lihu