Moving actions to using JSON for all parameter/result passing