enum's [JsonConvert] annotation ignored when enum is Dictionary<> key

More trouble with enums! The converter is being ignored when the enum is a key in a dictionary. The code snippet below (A LINQPad snippet) should output: { 'baz': 'baz' } but instead outputs: { '...

Id #24331 | Release: None | Updated: Tue at 11:24 PM by pryankster | Created: Tue at 11:24 PM by pryankster

Assembly Version Update?

Unsure if this is an actual issue: The current version (5.0.5) appears to be set as 4.5.0.0 in the assembly. Noticed this when attempting to resolve build warnings with another nuget package. Th...

Id #24330 | Release: None | Updated: Tue at 9:24 PM by sallgeud | Created: Tue at 9:24 PM by sallgeud

StringEnumConverter ignores [EnumMember] with [Flags] on enum

When the [Flags] attribute is applied to an enum, and the enum value to serialize is made up of more than one flag value, the StringEnumConverter fails to respect [EnumMemberAttribute]. code belo...

Id #24329 | Release: None | Updated: Tue at 7:01 AM by pryankster | Created: Tue at 7:01 AM by pryankster

Reference loop handling doesn't work, even with reference tracking on

Sometimes I get nulls in arbitrary places: http://stackoverflow.com/questions/16472958/json-net-silently-ignores-circular-references-and-sets-arbitrary-links-in-the-ch And sometimes I just get ex...

Id #24328 | Release: None | Updated: Tue at 5:58 AM by ekolis | Created: Tue at 12:04 AM by ekolis

[Win2003 & Newtonsoft.Json.dll (.NET2.0version)]Build issue!

When build in VS there is a exception occurs which is as following: Missing compiler required member 'System.Runtime.CompilerServices.ExtensionAttribute..ctor' Could you please explain what's the ...

Id #24316 | Release: None | Updated: Fri at 10:57 AM by pangxiaoliang | Created: Fri at 10:57 AM by pangxiaoliang

Serialized Guid not converting in JToken

When serializing a Guid property using the BSONWriter, loading the result in a JObject does not allow me to get the property using the "Value<>" method. The JToken uses the Extensions.cs instead of...

Id #24314 | Release: None | Updated: Fri at 5:08 AM by kl_mallory | Created: Fri at 4:53 AM by kl_mallory

TypeConverter on Interfaces

In the current implementation of Json.NET, TypeConverters on interfaces and abstract classes are not handled properly (in my opinion). If such a converter exists on an interface, the following code...

Id #24301 | Release: None | Updated: Fri at 12:38 PM by macandy13 | Created: May 14 at 9:01 AM by macandy13

NullValueHandling not working

Hi James, I am trying to skip the null values, but after upgrade to 4.5, NullValueHandling.Ignore settings are not working, it was working fine earlier. I am using it inside WebAPI, I even tried t...

Id #24273 | Release: None | Updated: May 14 at 7:05 AM by JamesNK | Created: May 11 at 12:32 PM by anwarjaved82

NullReferenceException using 'required' in JsonSchema

JsonSchema.Parse() gets a NullReferenceException if the schema contains the 'required' property. EDIT: I now see why this wasn't working. http://json-schema.org/examples.html shows 'required' as t...

Id #24038 | Release: None | Updated: Mar 5 at 2:40 PM by RickMohr | Created: Mar 5 at 1:50 PM by RickMohr

JSON schema with data annotation

Hello, I had the requirements of being able to add more constraints to properties in the JSON schema. I then implemented a post processing schema generation that scans all property attributes and a...

Id #23819 | Release: None | Updated: Feb 22 at 1:47 AM by MsdnDev | Created: Jan 22 at 4:35 PM by MsdnDev

Custom Error Message

Can we define our own error message for JSON validate method?   For example, this error message "String '1490AA00' does not match regex pattern '^(\d{5})[A-Z]{2}(\d{2})$'." does not make much sense...

Id #22537 | Release: None | Updated: Feb 22 at 1:48 AM by JsonSpc | Created: Apr 23, 2012 at 3:00 AM by JsonSpc

JsonTypeReflector.DynamicCodeGeneration Security Issue

Hello,   I think there is an issue with the way JsonTypeReflector.DynamicCodeGeneration is set. It is a lazy static getter that is never updated. The value of JsonTypeReflector.DynamicCodeGeneratio...

Id #21575 | Release: None | Updated: Feb 22 at 1:48 AM by B4ptiste | Created: Sep 27, 2011 at 4:31 PM by B4ptiste

SerializeObject<T> - use the typeof(T)

Hi,   More info: http://json.codeplex.com/discussions/245862   Either: a SerializeObject<T> where T is used as type for reflecting the properties and not the actual type of the item being passed. ...

Id #20017 | Release: None | Updated: Feb 22 at 1:48 AM by DanielSchaffer | Created: Feb 15, 2011 at 6:58 AM by sedanwer

  • 1-13 of 13 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • 10
    • 25
    • 100
    • Work Items