public static Price Parse(JsonValue jsonValue, string Currency = "") { double n = 0; if (jsonValue.ValueType == JsonValueType.Number) { n = jsonValue.GetNumber(); } else if (jsonValue.ValueType == JsonValueType.String) { string number_str = jsonValue.GetString(); if (CloureManager.GetSystemDecimalSeparator() == ",") { //in API double always is with point number_str = number_str.Replace(".", ","); double.TryParse(number_str, out n); } } Price clourePrice = new Price(n, Currency); return(clourePrice); }