[silviu,alex] switch response type from plain text to json