Context#JSON() new line The Context#JSON() is adding a newline character to the end of the JSON response. expected: "{\"name\":\"Jon Snow\",\"email\":\"jon@labstack.com\"}" actual: "{\"name\":\"Jon Snow\",\"email\":\"jon@labstack.com\"}\n"