add json parsing method to helper class