if JSON.parse fails raise exception mentioning name of language