support --dump switch in nqp/parse-json
die appropriately on JSON parse error