I did as what the doc said, defined all of my entities, and executed , and then, I realize I need JSON result, so I executed , and executed command by maven (I chose the Google Appengine Datastore as my DB) when I run
, I still get the html response, not JSON.
curl -i -H "Accept: application/json" http://localhost:8080/petclinic/owners
I reviewed the source, it did generate the *Controller_Roo_Controller_Json.aj files. And I rebuilt the web app, but I still cannot get the JSON response, but HTML response. What did I wrong? Did I miss some step? It cannot get the correct JSON response if I use GAE?