r38: added exceptions for case when json could not be parsed