diff --git a/Implab/Formats/JSON/JSONXmlReader.cs b/Implab/Formats/JSON/JSONXmlReader.cs --- a/Implab/Formats/JSON/JSONXmlReader.cs +++ b/Implab/Formats/JSON/JSONXmlReader.cs @@ -266,9 +266,17 @@ namespace Implab.Formats.JSON { get { if (m_parser.ElementValue == null) return String.Empty; - if (Convert.GetTypeCode(m_parser.ElementValue) == TypeCode.Double) - return ((double)m_parser.ElementValue).ToString(CultureInfo.InvariantCulture); - return m_parser.ElementValue.ToString(); + + switch(Convert.GetTypeCode (m_parser.ElementValue)) { + case TypeCode.Double: + return ((double)m_parser.ElementValue).ToString (CultureInfo.InvariantCulture); + case TypeCode.String: + return (string)m_parser.ElementValue; + case TypeCode.Boolean: + return (bool)m_parser.ElementValue ? "true" : "false"; + default: + return m_parser.ElementValue.ToString (); + } } } diff --git a/Implab/Implab.csproj b/Implab/Implab.csproj --- a/Implab/Implab.csproj +++ b/Implab/Implab.csproj @@ -205,12 +205,14 @@ - - + + - - - + + + + +