denismp (21) [Avatar] Offline
#1
I have a ~.model.Student and ~.web.StudentController class and none of the web mvc json commands work. Can someone help me? When I run the web mvc json all --package ~.web command nothing gets updated. I don't see the "application/json" mappings in the controller.

optional --class: The java type to apply this annotation to; default if option not present: '*'
roo> web mvc json add --jsonObject ~.web.StudentController --class ~.model.Student
Updated SRC_MAIN_JAVA/com/app/myschool/model/Student.java
~.model.Student roo> web mvc json all --package ~.web
~.web roo>
denismp (21) [Avatar] Offline
#2
Re: web mvc json does not work.
json all --deepSerialize
web mvc json all

This seems to have done the trick.
ken.rimple (246) [Avatar] Offline
#3
Re: web mvc json does not work.
i believe you have to set up json specifically as you did before using web mvc json.