Modified createDictFromJSON method - removed hard-coded values so the method can accept any list of dicts.