private static string GetJsonMessage(string json) { var jsonCode = ResponseBase.GetCode(json); var jsonMessage = ResponseBase.GetMessage(json); if (jsonCode != "400.1") { return(jsonMessage); } var kvp = JsonConvert.DeserializeObject <ResponseDataBase <Dictionary <string, string> > >(json); return(jsonMessage + ":" + Environment.NewLine + string.Join(Environment.NewLine, kvp.Data.Select(k => k.Key + ": " + k.Value))); }