Add variable column name into a grid

can anybody help me .I have a problem in adding variable column name

code:

str=“name”
_root.grid.addItem({str:‘Jim!!’, age:30});

output:
str age
jim 30

I want the following output:
Name age
jim 30

thank you