adding json response instead of plain text