from_json() in case of error dies with usefull info
Merge pull request #6 from bessarabov/from_json

from_json() in case of error dies with usefull info