refactored JSON handling from movie controller to JsonUtil.