fix json parsing for browserstack tests