If single prograame json doesn't return an array, test for an array. If the initial URL is other format site now redirects rather than return the page, add code to handle redirection of first page.