adding json response instead of plain text
adding json response instead of plain text