added try on json parse