Patch the json call in JS to get path info