Using objects as a dataprovider

I’m having some trouble when using objects in an array for my dataprovider.

Here’s the code I’m using…

for(var i:int=0;i<getLength(obj.responseData.results);i++) {
	dpData* = new Array();
	dpData*.push({Title: obj.responseData.results*.titleNoFormatting});
	dpData*.push({Address: obj.responseData.results*.streetAddress});
	dpData*.push({City: obj.responseData.results*.city});
	dpData*.push({State: obj.responseData.results*.region});
	dpData*.push({Country: obj.responseData.results*.country});
	dpData*.push({Phone: obj.responseData.results*.phoneNumbers[0].number});
	
	//dpArray.push(obj.responseData.results*);
	dg.dataProvider = dpData;
}

And when it gets displayed in the datagrid, it just shows as [object Object] which obviously won’t work for me…

The reason I’m doing it this way is so that I get to set the name of the columns. If I let the object define these, I get things like streetAddress instead of Address, which isn’t huge, but still not what I’m after.

When I do it this way though, I just get 0, 1, 2, 3, 4, 5 for the column headers.

So, needless to say, I’m quite confused about what I’m supposed to do to get these objects to show up as strings in the datagrid.

I’ve tried String(), but that still just gives me the object like before.

Any ideas?