Talk:Ruby- Remove Elements From An Array/@comment-43.250.156.36-20200805060257

To remove first element from array, use array shift method. If you are using JSON, then convert the json to the array and then use the inbuilt method to remove the first item from the array.

The array shift method removes the first element and returns that element. So, if you want to perform some operations on the removed element, then you can do that as well.