able to pull trends from json data in block passed to class