Rest Sensor Support Attribute Templates

It would be ideal if rest sensors can have an attributes template. That would allow more flexibility for getting attributes such as pullling in lists of dictionaries rather than needing to do this workaround to achieve the same thing.