Fix the 'items' array being encoded as an object

As a result, the 'array' URL option had to be removed, as json_encode()
doesn't support forcing an array.