How to remove symbols from array?

I am getting this output how do i remove “symbol” from list?

You use a for loop and simply iterate through this object. Extract the value of symbol, store it in a new list and return that.

best way to do that would be create a parser class which can store all the json as pojo, then iterate over the parser object to store only the symbol value in a list (you can do that using a loop as mentioned by @shoryajain ).

1 Like

check your code and save only the values of Symbol, in the list and return it.