refactor calls to JsonServer to add new handler parameter