call blocks with errors if JSON could not be parsed