Centralized handling of JSON decode issues