from_json() in case of error dies with usefull info

This solution is based on discussion in https://github.com/QBitFramework/qbit/pull/5