Fixed to use the generic form action invoker
Moved JSON encoding out of generic invoker