Pop removes the tail of the queue and deserialize it as JSON into v.
Push serialize v as JSON and pushes the blob on the queue.
Shift removes the head of the queue and deserialize it as JSON into v.
Unshift serialize v as JSON and pushes the blob on the queue.