Removes the element at the given position inside an array.
This function will release the reference held on the element.
a JSON array
the position of the element to be removed