private void ExecuteAPI(string name, string[] args) { var result = api.Execute(name, args); if (result == null) { logger.Warning("API returned null value..."); return; } var node = APIUtils.FromAPIResult(result); var json = JSONWriter.WriteToString(node); logger.Message(json); }