You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Devender Yadav <de...@impetus.co.in> on 2017/04/24 17:44:01 UTC

How to convert DataFrame to JSON String in Java 7

Hi All,



How can I convert DataFrame to JSON String in Java 7. I am using Spark 1.6.3


I don't want to print on console. I need to return JSON return to another method.


Thanks for your attention!



Regards,
Devender

________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.