I have an object like this
==================records=========={ Id: 5114a3c21203e0d811000088, userId: \'test\', sUserId: test, userName: \'test\', ur
Those finding this problem, OP mentioned in a comment below the original question that the solution for this problem is:
records.set('Name', 'test')
This adds a new attribute called Name having value test.
Name
test