changed line in get json using location.path