changes json call to relative path