didn't see that it wanted a json response until I had already spent too much time doing it the other way.