mirror of
https://github.com/retailcrm/api-client-dotnet.git
synced 2024-11-21 20:36:02 +03:00
commit
010b6c1c27
@ -70,15 +70,14 @@ namespace RetailCrm.Extra
|
||||
if (valueObj.GetType() == typeof(JArray))
|
||||
{
|
||||
string tmpValue = JsonConvert.SerializeObject(((JArray)valueObj).ToArray<dynamic>());
|
||||
value = tmpValue.Replace("[", "{");
|
||||
value = value.Replace("]", "}");
|
||||
char[] charsToTrim = { '[', ' ', ']'};
|
||||
value = tmpValue.Trim(charsToTrim);
|
||||
}
|
||||
else
|
||||
{
|
||||
value = valueObj.ToString();
|
||||
}
|
||||
System.Console.WriteLine(value);
|
||||
System.Console.ReadLine();
|
||||
|
||||
if (value != "")
|
||||
{
|
||||
if (valueObj.GetType() == typeof(JObject) || valueObj.GetType() == typeof(JArray))
|
||||
|
Loading…
Reference in New Issue
Block a user