Added try/except for loading JSON object