<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Json Forum Rss Feed</title><link>http://www.codeplex.com/Json/Thread/List.aspx</link><description>Json Forum Rss Description</description><item><title>New Post: Installation problem of JSON.NET in C++/CLI Windows Form Project with VS2010</title><link>http://json.codeplex.com/discussions/444178</link><description>&lt;div style="line-height: normal;"&gt;I would like to use JSON.NET to do the JSON parsing process in my C++/CLI Windows Forms Application. The error occurred during the package installation of Newtonsoft.Json 5.0.5.&lt;br /&gt;
The installation log is as follows.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;Installing 'Newtonsoft.Json 5.0.5'.
Successfully installed 'Newtonsoft.Json 5.0.5'.
Adding 'Newtonsoft.Json 5.0.5' to test.
Uninstalling 'Newtonsoft.Json 5.0.5'.
Successfully uninstalled 'Newtonsoft.Json 5.0.5'.
Install failed. Rolling back...
Install-Package : Could not install package 'Newtonsoft.Json 5.0.5'. You are trying to install this package
 into a project that targets 'Native,Version=v0.0', but the package does not contain any assembly reference
s or content files that are compatible with that framework. For more information, contact the package autho
r.
At line:1 char:16
+ Install-Package &amp;lt;&amp;lt;&amp;lt;&amp;lt;  Newtonsoft.Json
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageComman 
   d
&lt;/code&gt;&lt;/pre&gt;

Is it possible to use JSON.NET in C++/CLI language? Thank you.&lt;br /&gt;
&lt;/div&gt;</description><author>pc323</author><pubDate>Sun, 19 May 2013 09:24:32 GMT</pubDate><guid isPermaLink="false">New Post: Installation problem of JSON.NET in C++/CLI Windows Form Project with VS2010 20130519092432A</guid></item><item><title>New Post: possible FileVersion and AssemblyVersion mismatch</title><link>http://json.codeplex.com/discussions/443674</link><description>&lt;div style="line-height: normal;"&gt;We are using Json.NET 5.0.5 from NuGet and I noticed that FileVersion is 5.0.5.16108 but the AssemblyVersion is 4.5.0.0, is this by design? I would have thought that AssemblyVersion matched the NuGet version number. &lt;br /&gt;
&lt;br /&gt;
I don't think i have noticed this before in earlier versions.&lt;br /&gt;
&lt;/div&gt;</description><author>rotgut</author><pubDate>Wed, 15 May 2013 06:34:25 GMT</pubDate><guid isPermaLink="false">New Post: possible FileVersion and AssemblyVersion mismatch 20130515063425A</guid></item><item><title>New Post: For a big data, Jquery call back id randomly appears</title><link>http://json.codeplex.com/discussions/443142</link><description>&lt;div style="line-height: normal;"&gt;I am confused. After the web service return JsonConvert.SerializeObject result,&lt;br /&gt;
there is an error in  JSON.parse script. It seems for a larger query, the results always has &amp;quot;Jqueryxxxxxxxxxxxx&amp;quot;. Examples below:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Retries&amp;quot;: 0,&lt;br /&gt;
&amp;quot;Employ);jQuery1710008925603404620341_1368119766228(ee&amp;quot;: &amp;quot;test&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
If I do a small query even for that bad record, it is okay. It seems that for a large record, the Jqueryxxxxx gets injected. Does any know have any idea? Thank you for any feedbacks.&lt;br /&gt;
&lt;/div&gt;</description><author>fe_us_2011</author><pubDate>Thu, 09 May 2013 17:25:53 GMT</pubDate><guid isPermaLink="false">New Post: For a big data, Jquery call back id randomly appears 20130509052553P</guid></item><item><title>New Post: Compact Framework MissingMethodException</title><link>http://json.codeplex.com/discussions/247415</link><description>&lt;div style="line-height: normal;"&gt;I'm having a similar problem to this (same exception, same error message). Can you please post your solution?&lt;br /&gt;
&lt;br /&gt;
I realize that this thread is really old, but this is the only instance that Google could find of someone having a similar problem.&lt;br /&gt;
&lt;/div&gt;</description><author>triskalguilo</author><pubDate>Wed, 08 May 2013 20:16:24 GMT</pubDate><guid isPermaLink="false">New Post: Compact Framework MissingMethodException 20130508081624P</guid></item><item><title>New Post: Method not found 'Void Newtonsoft.Json.Serialization.DefaultContractResolver.set_IgnoreSerializableAttribute(Boolean)</title><link>http://json.codeplex.com/discussions/401100</link><description>&lt;div style="line-height: normal;"&gt;&lt;strong&gt;JeanPaulSmit wrote:&lt;/strong&gt;&lt;br /&gt;
&lt;blockquote&gt;
I'm having the same issue, it seems to be related to the Visual Studio version you're using and the version of the MVC 4 package (beta/RC). Unfortunately I haven't fixed it.&lt;br /&gt;
&lt;/blockquote&gt;
Is there any workaround for it?&lt;br /&gt;
&lt;/div&gt;</description><author>JeffTian</author><pubDate>Wed, 08 May 2013 03:29:44 GMT</pubDate><guid isPermaLink="false">New Post: Method not found 'Void Newtonsoft.Json.Serialization.DefaultContractResolver.set_IgnoreSerializableAttribute(Boolean) 20130508032944A</guid></item><item><title>New Post: Deserialize the dataset which contain MySqlDateTime will be exception</title><link>http://json.codeplex.com/discussions/442426</link><description>&lt;div style="line-height: normal;"&gt;var ds = GetDs();;&lt;br /&gt;
var rst = Serializer.JsonSerialize(ds);&lt;br /&gt;
&lt;h2&gt;var dsR = Serializer.JsonXDeserialize&amp;lt;DataSet&amp;gt;(rst);&lt;/h2&gt;
System.ArgumentOutOfRangeException : 指定的参数已超出有效值的范围。&lt;br /&gt;
   在 Newtonsoft.Json.Converters.DataTableConverter.GetColumnDataType(JsonToken tokenType) 位置 c:\Temp\Json\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Converters\DataTableConverter.cs: line 139&lt;br /&gt;
   在 Newtonsoft.Json.Converters.DataTableConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) 位置 c:\Temp\Json\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Converters\DataTableConverter.cs: line 105&lt;br /&gt;
   在 Newtonsoft.Json.Converters.DataSetConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) 位置 c:\Temp\Json\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Converters\DataSetConverter.cs: line 81&lt;br /&gt;
   在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) 位置 c:\Temp\Json\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs: line 1378&lt;br /&gt;
   在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) 位置 c:\Temp\Json\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs: line 164&lt;br /&gt;
   在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) 位置 c:\Temp\Json\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonSerializer.cs: line 565&lt;br /&gt;
   在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, JsonSerializerSettings settings) 位置 c:\Temp\Json\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs: line 913&lt;br /&gt;
   在 HD.Serialization.Serializer.JsonXDeserialize(String jsonString) 位置 Serializer.cs: line 35&lt;br /&gt;
   在 HD.DataAccessTest.MySqlDataTimeConvertTest.DataSetToJsonTest() 位置 MySqlDataTimeConvertTest.cs: line 25&lt;br /&gt;
&lt;/div&gt;</description><author>atwind</author><pubDate>Fri, 03 May 2013 07:06:52 GMT</pubDate><guid isPermaLink="false">New Post: Deserialize the dataset which contain MySqlDateTime will be exception 20130503070652A</guid></item><item><title>New Post: Json format keyvalues only</title><link>http://json.codeplex.com/discussions/441352</link><description>&lt;div style="line-height: normal;"&gt;Hello How to get the following format using JSON.NET?&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&amp;quot;123&amp;quot;: &amp;quot;CustomerA&amp;quot;,&lt;br /&gt;
&amp;quot;345&amp;quot;:&amp;quot;CustomerB&amp;quot;,&lt;br /&gt;
&amp;quot;789&amp;quot;:&amp;quot;CustomerC&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Currently when I Serialize my object I get the data in the following format&lt;br /&gt;
[&lt;br /&gt;
{&lt;br /&gt;
Name: &amp;quot;CustomerA&amp;quot;,&lt;br /&gt;
ID: &amp;quot;123&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
{&lt;br /&gt;
Name: &amp;quot;CustomerB&amp;quot;,&lt;br /&gt;
ID: &amp;quot;345&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
etc etc&lt;br /&gt;
]&lt;br /&gt;
&lt;/div&gt;</description><author>stendard</author><pubDate>Tue, 23 Apr 2013 20:43:24 GMT</pubDate><guid isPermaLink="false">New Post: Json format keyvalues only 20130423084324P</guid></item><item><title>New Post: 4.5.11 to 5.0.3 Breaking Changes?</title><link>http://json.codeplex.com/discussions/440809</link><description>&lt;div style="line-height: normal;"&gt;The release notes against each download.&lt;br /&gt;
&lt;br /&gt;
Note that the JSON schema stuff will tend to change. The JSON schema spec hasn't been finalized and is continually changing.&lt;br /&gt;
&lt;/div&gt;</description><author>JamesNK</author><pubDate>Sun, 21 Apr 2013 22:32:50 GMT</pubDate><guid isPermaLink="false">New Post: 4.5.11 to 5.0.3 Breaking Changes? 20130421103250P</guid></item><item><title>New Post: Parsing Nested Object as List</title><link>http://json.codeplex.com/discussions/440898</link><description>&lt;div style="line-height: normal;"&gt;i have a json formed as this&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;{ &amp;quot;caption&amp;quot; : &amp;quot;&amp;quot;,
  &amp;quot;description&amp;quot; : &amp;quot;&amp;quot;,
  &amp;quot;id&amp;quot; : 5706,
  &amp;quot;images&amp;quot; : { &amp;quot;full&amp;quot; : { &amp;quot;height&amp;quot; : 338,
          &amp;quot;url&amp;quot; : &amp;quot;http://tecnonation.net/wp-content/uploads/2013/04/htc-desire-l-lead4.jpg&amp;quot;,
          &amp;quot;width&amp;quot; : 619
        },
      &amp;quot;large&amp;quot; : { &amp;quot;height&amp;quot; : 338,
          &amp;quot;url&amp;quot; : &amp;quot;http://tecnonation.net/wp-content/uploads/2013/04/htc-desire-l-lead4.jpg&amp;quot;,
          &amp;quot;width&amp;quot; : 619
        },
      &amp;quot;large-thumb&amp;quot; : { &amp;quot;height&amp;quot; : 140,
          &amp;quot;url&amp;quot; : &amp;quot;http://tecnonation.net/wp-content/uploads/2013/04/htc-desire-l-lead4-222x140.jpg&amp;quot;,
          &amp;quot;width&amp;quot; : 222
        },
      &amp;quot;medium&amp;quot; : { &amp;quot;height&amp;quot; : 163,
          &amp;quot;url&amp;quot; : &amp;quot;http://tecnonation.net/wp-content/uploads/2013/04/htc-desire-l-lead4-300x163.jpg&amp;quot;,
          &amp;quot;width&amp;quot; : 300
        },
      &amp;quot;slider-image&amp;quot; : { &amp;quot;height&amp;quot; : 300,
          &amp;quot;url&amp;quot; : &amp;quot;http://tecnonation.net/wp-content/uploads/2013/04/htc-desire-l-lead4-619x300.jpg&amp;quot;,
          &amp;quot;width&amp;quot; : 619
        },
      &amp;quot;small-thumb&amp;quot; : { &amp;quot;height&amp;quot; : 60,
          &amp;quot;url&amp;quot; : &amp;quot;http://tecnonation.net/wp-content/uploads/2013/04/htc-desire-l-lead4-80x60.jpg&amp;quot;,
          &amp;quot;width&amp;quot; : 80
        },
      &amp;quot;thumbnail&amp;quot; : { &amp;quot;height&amp;quot; : 150,
          &amp;quot;url&amp;quot; : &amp;quot;http://tecnonation.net/wp-content/uploads/2013/04/htc-desire-l-lead4-150x150.jpg&amp;quot;,
          &amp;quot;width&amp;quot; : 150
        }
    },
  &amp;quot;mime_type&amp;quot; : &amp;quot;image/jpeg&amp;quot;,
  &amp;quot;parent&amp;quot; : 5705,
  &amp;quot;slug&amp;quot; : &amp;quot;htc-desire-l-lead4&amp;quot;,
  &amp;quot;title&amp;quot; : &amp;quot;htc-desire-l-lead4&amp;quot;,
  &amp;quot;url&amp;quot; : &amp;quot;http://tecnonation.net/wp-content/uploads/2013/04/htc-desire-l-lead4.jpg&amp;quot;
}&lt;/code&gt;&lt;/pre&gt;

and i need to Serialize the Images Array in the Image class Declared this way&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public class Image
    {
        [JsonProperty(&amp;quot;???&amp;quot;)]
        public string Type { get; set; }

        [JsonProperty(&amp;quot;url&amp;quot;)]
        public string Url { get; set; }

        [JsonProperty(&amp;quot;width&amp;quot;)]
        public int Width { get; set; }

        [JsonProperty(&amp;quot;height&amp;quot;)]
        public int Height { get; set; }
    }&lt;/code&gt;&lt;/pre&gt;

with type as the Name of the object&lt;br /&gt;
how can i solve this?&lt;br /&gt;
&lt;/div&gt;</description><author>MesserViator</author><pubDate>Fri, 19 Apr 2013 12:55:49 GMT</pubDate><guid isPermaLink="false">New Post: Parsing Nested Object as List 20130419125549P</guid></item><item><title>New Post: 4.5.11 to 5.0.3 Breaking Changes?</title><link>http://json.codeplex.com/discussions/440809</link><description>&lt;div style="line-height: normal;"&gt;Is there a list somewhere of breaking changes between 4.5.11 and 5.0.3?&lt;br /&gt;
&lt;br /&gt;
I am getting a compile error because the JsonSchema type no longer has Identity or Options properties.&lt;br /&gt;
&lt;/div&gt;</description><author>rcollette</author><pubDate>Thu, 18 Apr 2013 18:24:47 GMT</pubDate><guid isPermaLink="false">New Post: 4.5.11 to 5.0.3 Breaking Changes? 20130418062447P</guid></item><item><title>New Post: Selecting the Correct constructor Without an Attribute?</title><link>http://json.codeplex.com/discussions/438460</link><description>&lt;div style="line-height: normal;"&gt;Yes. ConstructorHandling.AllowNonPublicDefaultConstructor&lt;br /&gt;
&lt;br /&gt;
It is covered in the documentation... &lt;a href="http://james.newtonking.com/projects/json/help/index.html?topic=html/SerializationSettings.htm" rel="nofollow"&gt;http://james.newtonking.com/projects/json/help/index.html?topic=html/SerializationSettings.htm&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>JamesNK</author><pubDate>Wed, 17 Apr 2013 03:07:51 GMT</pubDate><guid isPermaLink="false">New Post: Selecting the Correct constructor Without an Attribute? 20130417030751A</guid></item><item><title>New Post: JsonSchemaGenerator problems</title><link>http://json.codeplex.com/discussions/245604</link><description>&lt;div style="line-height: normal;"&gt;added support for underlying types too:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;        private static JsonSchema GetJsonSchemaFromObject(Type type)
        {
            var schemaGenerator = new JsonSchemaGenerator();

            var jSchema = schemaGenerator.Generate(type);

            jSchema = MapSchemaTypes(jSchema, type);

            return jSchema;
        }
        private static JsonSchema MapSchemaTypes(JsonSchema jSchema, Type type)
        {
            foreach (var js in jSchema.Properties)
            {
                Type fieldType = type.GetProperty(js.Key).PropertyType;

                if (fieldType.IsGenericType
                    &amp;amp;&amp;amp; fieldType.GetGenericTypeDefinition().Equals(typeof(Nullable&amp;lt;&amp;gt;)))
                {
                    Type underlyingType = Nullable.GetUnderlyingType(fieldType);
                    if (underlyingType == typeof(DateTime))
                        js.Value.Format = &amp;quot;date-time&amp;quot;;
                    else if (underlyingType.BaseType == typeof(Enum))
                        js.Value.Enum = new JArray(Enum.GetNames(underlyingType));
                }
                else if (fieldType == typeof(DateTime))
                {
                    js.Value.Format = &amp;quot;date-time&amp;quot;;
                }
                else if (fieldType.BaseType == typeof(Enum))
                {
                    js.Value.Enum = new JArray(Enum.GetNames(fieldType));
                }
                else if (js.Value.Items != null &amp;amp;&amp;amp; js.Value.Items.Any())
                {
                    foreach (var item in js.Value.Items)
                    {
                        var arg = fieldType.GetGenericArguments();
                        if (arg.Any())
                            fieldType = arg[0];

                        MapSchemaTypes(item, fieldType);
                    }
                }
                else if (js.Value.Properties != null &amp;amp;&amp;amp; js.Value.Properties.Any())
                {
                    MapSchemaTypes(js.Value, fieldType);
                }
            }
            return jSchema;
        }&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>TURNSKIN</author><pubDate>Fri, 12 Apr 2013 09:07:23 GMT</pubDate><guid isPermaLink="false">New Post: JsonSchemaGenerator problems 20130412090723A</guid></item><item><title>New Post: Changing the CDATA SerializeXmlNode Behavior</title><link>http://json.codeplex.com/discussions/439861</link><description>&lt;div style="line-height: normal;"&gt;Just some background: I am getting Xml from a Pick database and converting it to json because we would like to move away from Xml. I am writing a new version of software that will expect json from Pick. I am running in to an issue when converting the Xml to Json with Xml containing CDATA.&lt;br /&gt;
&lt;br /&gt;
In that case of &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;DESCRIPTION&amp;gt;&amp;lt;![CDATA[This is that &amp;lt;font color=\&amp;quot;orange\&amp;quot;&amp;gt;HOODIE&amp;lt;/font&amp;gt; that everyone wants!]]&amp;gt;&amp;lt;/DESCRIPTION&amp;gt;&lt;/code&gt;&lt;/pre&gt;

I would like to get back&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;{ &amp;quot;description&amp;quot;: &amp;quot;This is that &amp;lt;font color=\&amp;quot;orange\&amp;quot;&amp;gt;HOODIE&amp;lt;/font&amp;gt; that everyone wants!&amp;quot; }&lt;/code&gt;&lt;/pre&gt;

Instead of &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;{ &amp;quot;description&amp;quot; : { &amp;quot;#cdata-sections&amp;quot;: &amp;quot;This is that &amp;lt;font color=\&amp;quot;orange\&amp;quot;&amp;gt;HOODIE&amp;lt;/font&amp;gt; that everyone wants!&amp;quot; }}&lt;/code&gt;&lt;/pre&gt;

I've looked in to overriding the XmlNodeConverter but that thing is a beast and uses a lot of internal utility classes. Is this something that I could do with a custom contract resolver?&lt;br /&gt;
&lt;br /&gt;
The problem really is that I dont know when an Xml node will contain CDATA and ideally I'd like it to be converted to a string rather than an object with a #cdata-section field. I could create a CdataConverter to check whether the json is an object and contains cdata, but then every string in my C# objects would need to use that converter.&lt;br /&gt;
&lt;/div&gt;</description><author>pixelshaded</author><pubDate>Wed, 10 Apr 2013 23:09:47 GMT</pubDate><guid isPermaLink="false">New Post: Changing the CDATA SerializeXmlNode Behavior 20130410110947P</guid></item><item><title>New Post: Why the Linq namespace throw exceptions of the base class Exception?</title><link>http://json.codeplex.com/discussions/439793</link><description>&lt;div style="line-height: normal;"&gt;In a lot of places in this namespace, when an error occur, an exception is raised with the class Exception.&lt;br /&gt;
&lt;br /&gt;
Why not Json.Net-related exception classes?&lt;br /&gt;
In my code, I have to catch Exception when an error occur with Json.Net, which is far from ideal.&lt;br /&gt;
&lt;br /&gt;
Are there plans for such Json.Net-related exceptions in the future?&lt;br /&gt;
&lt;/div&gt;</description><author>ephemeregames</author><pubDate>Wed, 10 Apr 2013 14:24:45 GMT</pubDate><guid isPermaLink="false">New Post: Why the Linq namespace throw exceptions of the base class Exception? 20130410022445P</guid></item><item><title>New Post: How to deserealize undefined and nested Hashtable structure?</title><link>http://json.codeplex.com/discussions/439513</link><description>&lt;div style="line-height: normal;"&gt;How to deserealize undefined and nested Hashtable structure with json.net? for example: @&amp;quot;{&amp;quot;a&amp;quot; : {&amp;quot;b&amp;quot; : 1}}&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
Hashtable data = JsonConvert.DeserializeObject&amp;lt;Hashtable&amp;gt;(json_str)&lt;br /&gt;
&lt;br /&gt;
returns Newtonsoft.Json.Linq.JObject at data[&amp;quot;a&amp;quot;], instead Hashtable&lt;br /&gt;
&lt;/div&gt;</description><author>Acies</author><pubDate>Mon, 08 Apr 2013 14:46:48 GMT</pubDate><guid isPermaLink="false">New Post: How to deserealize undefined and nested Hashtable structure? 20130408024648P</guid></item><item><title>New Post: Boolean value - parse error</title><link>http://json.codeplex.com/discussions/439243</link><description>&lt;div style="line-height: normal;"&gt;This is just a small part of the original JSON file. In the original file it's a capital 'T'.&lt;br /&gt;
But the capital 'T' is causing the problem. I've changed it to lowercase and it's fixed now.&lt;br /&gt;
Thank you very much !!&lt;br /&gt;
&lt;/div&gt;</description><author>robert_rdk</author><pubDate>Fri, 05 Apr 2013 13:45:34 GMT</pubDate><guid isPermaLink="false">New Post: Boolean value - parse error 20130405014534P</guid></item><item><title>New Post: Boolean value - parse error</title><link>http://json.codeplex.com/discussions/439243</link><description>&lt;div style="line-height: normal;"&gt;Are you sure this is valid JSON? I think &amp;quot;true&amp;quot; should have a lowercase T.&lt;br /&gt;
&lt;/div&gt;</description><author>clechasseur</author><pubDate>Fri, 05 Apr 2013 13:39:41 GMT</pubDate><guid isPermaLink="false">New Post: Boolean value - parse error 20130405013941P</guid></item><item><title>New Post: Boolean value - parse error</title><link>http://json.codeplex.com/discussions/439243</link><description>&lt;div style="line-height: normal;"&gt;I try to pase a simple JSON string.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;string JSON = @&amp;quot;{&amp;quot;&amp;quot;isGuest&amp;quot;&amp;quot; : True}&amp;quot;;

JObject o = JObject.Parse(JSON);   // error
//. . . &lt;/code&gt;&lt;/pre&gt;

But an exeption occured;&lt;br /&gt;
&lt;br /&gt;
'Unexpected character encountered while parsing value'&lt;br /&gt;
&lt;br /&gt;
It seems that the unquoted value 'True' is the cause of the error.&lt;br /&gt;
I've to parse a file with several boolean values as in my example.&lt;br /&gt;
&lt;br /&gt;
How can i avoid an exeption ?&lt;br /&gt;
&lt;/div&gt;</description><author>robert_rdk</author><pubDate>Fri, 05 Apr 2013 13:20:20 GMT</pubDate><guid isPermaLink="false">New Post: Boolean value - parse error 20130405012020P</guid></item><item><title>New Post: Array of Generic Objects</title><link>http://json.codeplex.com/discussions/438801</link><description>&lt;div style="line-height: normal;"&gt;I'm trying to learn more about JSON and need to know how to deserialize an array that includes various objects derived from a base Class.  Meaning, if I had a base Class named Employee that had a few common properties and then two other Classes named Manager and Gopher that had other specific properties.... how do you deserialize into the respective object?&lt;br /&gt;
&lt;br /&gt;
Let's say the array included the following objects...&lt;br /&gt;
&lt;br /&gt;
// NOTE: This is not the JSON text; only the object variables in C#.&lt;br /&gt;
[ manager1, gopher1, gopher2, manager2, manager3, gopher3 ]&lt;br /&gt;
&lt;br /&gt;
I believe once it is deserialized into an arrary or List&amp;lt;Employee&amp;gt; I could cycle through and check it like.... &lt;br /&gt;
&lt;br /&gt;
foreach(Employee eNext in employees)&lt;br /&gt;
{&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;if (eNext is Manager)
{
    // do this...
}
else if(eNext is Gopher)
{
    // do this...
}&lt;/code&gt;&lt;/pre&gt;

}&lt;br /&gt;
&lt;br /&gt;
I've seen where some JSON text includes @type or @class, but not sure how to use appropriately.  Any help is appreciated.&lt;br /&gt;
&lt;/div&gt;</description><author>shaggygi97</author><pubDate>Tue, 02 Apr 2013 15:10:04 GMT</pubDate><guid isPermaLink="false">New Post: Array of Generic Objects 20130402031004P</guid></item><item><title>New Post: Converter support in WinRT / Metro</title><link>http://json.codeplex.com/discussions/390007</link><description>&lt;div style="line-height: normal;"&gt;Thanks, that was driving me nuts.&lt;br /&gt;
&lt;/div&gt;</description><author>Bolli</author><pubDate>Mon, 01 Apr 2013 22:19:02 GMT</pubDate><guid isPermaLink="false">New Post: Converter support in WinRT / Metro 20130401101902P</guid></item></channel></rss>