added try to parse JSON on response