I'm able to get a ruby hash into a json file
added json file writing and top 10 output