diff Implab/JSON/JSONXmlReader.cs @ 78:05f74c39a143 v2

fixed JSONXmlReader.ElementValue for boolean values
author cin
date Thu, 11 Sep 2014 17:45:15 +0400
parents a809805210d1
children 05e6468f066f
line wrap: on
line diff
--- a/Implab/JSON/JSONXmlReader.cs	Thu Sep 11 10:56:14 2014 +0400
+++ b/Implab/JSON/JSONXmlReader.cs	Thu Sep 11 17:45:15 2014 +0400
@@ -276,7 +276,7 @@
                 if (Convert.GetTypeCode(m_parser.ElementValue) == TypeCode.Double)
                     return ((double)m_parser.ElementValue).ToString(CultureInfo.InvariantCulture);
                 else
-                    return (string)m_parser.ElementValue;
+                    return m_parser.ElementValue.ToString();
             }
         }