updated FetchURL to allow json