At 2.1, getContent returned attributes as key/value pairs at 2.2, we didn't document this usage but we did use it in a few samples. At 2.2, the recommended approach is to use esri.substitute to get the information, here's a snippet that shows how this works:esri.substitute(evt.graphic.attributes, "${*}")
We use this in the Find Closest Facilities sample.