try except for importing json