SparkSQL return schema RDD. To store result in JSON format we need converter. This class converters will achieve this functionality.