REFACTOR - nested json processing to account for being given a single dictionary or an array of dictionaries. Added RatingHistoryHelper