Reading JSON Files from javascript

Today i am going to tell you how you can read a hirerical file of json using javascript . I have a json file with following format { “pakistan”:{ “provinces”:”5″, “cities”:”30″, “flagcolors”:”2″ }, “india”:{ “provinces”:”32″, “cities”:”200″, “flagcolors”:”3″ }   you can read this file using following javascript code function readJsonFile(){

Continue reading