Unify JsonObject usage in handlers and pass params to callbacks.