Added methods to return data and read JSON file in