better error handling for failed JSON.parse in staticdata module