How to convert array item to string

I have an array in a session variable called stats which has the following items.

{gid: "A100", FIB: 100, MVP: 0}
{gid: "A101", FIB: 95, MVP: 0}

I want to return an item at a particular index as a string

The expression below returns an object
[object%20Object]'gid', 'A100', '==')[0] 

I want it to return the following string

{gid: "A100", FIB: 100, MVP: 0}

How do i do that?

Community Page
Last updated: