ui: fix errorneously parsing of response data as JSON