fix path to jansson in README
improve error handling: fixed #41