I have a json file as following and I would like to sort it using rdd. How would I do it?
I tried the following but it does not sort the words :(
rdd = self.sc.textFile(self.dic_path).sortByKey()
{
"biennials": 0,
"tripolitan": 0,
"oblocutor": 0,
"leucosyenite": 0,
"chilitis": 0,
"fabianist": 0,
"diazeutic": 0,
"alible": 0,
"woods": 4601,
"preadjournment": 0,
"spiders": 0,
"fabianism": 0,
}