json-path: updating code to give a more meaningful exception messages.