add try-exept to parse json