handle json references relative to the current uri