ShouldSerialize{Property} not working if the method is virtual

public class A { } public class B { public A A { get; set;} public virtual bool ShouldSerializeA() { return false; } } Using version 6.0.2 this fails since the ShouldSerializeA is never called. ...

Id #25421 | Release: None | Updated: Today at 12:05 AM by duggaraju | Created: Today at 12:05 AM by duggaraju

JObject.SelectToken("id", true) throws exceptions even when "id" exists

Sample code: string jsonString = "{\"bookId\":\"1000\"}"; JObject json = JObject.Parse(jsonString); var bookId = json.SelectToken("bookId", true); //Expected result: bookId = "1000" //Actual res...

Id #25420 | Release: None | Updated: Wed at 8:08 PM by brianthompson | Created: Wed at 8:08 PM by brianthompson

XML.LINQ Error in Visual Studio 2013

I am using the latest SDK for Windows Phone 8.1. I just recently updated all my other SDKs to the latest and used NuGet to get the JSON package. The editor is having an error with the library versi...

Id #25407 | Release: None | Updated: Mon at 9:22 PM by eumenhof | Created: Mon at 9:21 PM by eumenhof

Strange decimal xml serialization

When using JsonConvert.DeserializeXNode some decimals (bigger than some value) serialize/deserialize with error. For example 1000000003.14159265358979 serializes to 1000000003.1415926. but 3.1415...

Id #25393 | Release: None | Updated: Apr 15 at 10:53 AM by pil0t | Created: Apr 15 at 10:53 AM by pil0t

conflicting parameter name in a constructor and in a class property

Problem: a class has a property of type of some abstract class marked as JsonObject. At the same time, this class has a constructor with one of the parameters with the same name as property but d...

Id #25389 | Release: None | Updated: Apr 14 at 1:08 AM by AlexeyKostylev | Created: Apr 14 at 12:50 AM by AlexeyKostylev

Unhandled Exception: System.TypeLoadException: Could not load type 'Newtonsoft.Json.Linq.JObject'

Can any one explain me why this exception occurred while linking this to mono in unity ? i am referencing the dll from Json60r1\Bin\Portable40 . which is a portable version (i assuming it for mobil...

Id #25311 | Release: None | Updated: Mar 21 at 12:02 PM by rakesh590 | Created: Mar 21 at 12:02 PM by rakesh590

Add support to DataTableConverter for FloatParseHandling

Could you please add support for JsonSerializerSettings.FloatParseHandling setting to DataTableConverter. Thanks.

Id #25259 | Release: None | Updated: Mar 12 at 12:16 PM by Mike_R | Created: Mar 12 at 12:16 PM by Mike_R

Comments are parsed as JValue-strings

using(var textReader = new StreamReader(stream)) using(var jsonReader = new JsonTextReader(textReader)) return JToken.ReadFrom(jsonReader); If the JSON file starts with a comment then a single...

Id #25170 | Release: None | Updated: Mar 14 at 9:36 AM by Auxilium | Created: Feb 8 at 7:43 PM by Zarat

DateTimeZoneHandling.Utc discards serialized timezone

Hi, JsonSerializer discards timezone information from serialized string, thus deserializes it incorrectly. Assuming that JsonSerializer is parametrized with DateTimeZoneHandling.Utc, it should ser...

Id #25075 | Release: None | Updated: Jan 14 at 1:37 PM by savamura | Created: Jan 14 at 1:37 PM by savamura

System.Reflection.BindingFlags Build Warnings on Windows Phone

Hey there, Really great work on the library. I use it basically everywhere! However, I encountered a build warning when I build my Windows Phone app, something like the following: c:\a\src\extern...

Id #25009 | Release: None | Updated: Jan 27 at 2:15 PM by rufusl | Created: Dec 18, 2013 at 6:16 AM by ChrisKXu

Issue with regular pattern matching during schema validation

Hi, I just ran into a problem when trying to validate a schema using a regular expression. I have this in my schema: 'time': { 'description': 'The time the event occurred in ISO 8601 ...

Id #24730 | Release: None | Updated: Sep 25, 2013 at 5:11 PM by Breggles | Created: Sep 25, 2013 at 5:11 PM by Breggles

Schema Validation support for Draft 04

The current json.net JsonValidatingReader does not support the draft 04 schema per spec at json-schema.org. Specificaly the items I care about are that "required" field is now an array in draft04 a...

Id #24700 | Release: None | Updated: Apr 8 at 11:30 AM by warappa | Created: Sep 13, 2013 at 8:46 PM by antonb

Allow custom TypePropertyName et al

I'm using angular.js which strips out any properties prefixed with '$' when converting an object to json. This causes json.net to be unable to determine the actual type of the object when deserial...

Id #24677 | Release: None | Updated: Sep 4, 2013 at 3:42 PM by lindexcorp | Created: Sep 4, 2013 at 3:42 PM by lindexcorp

Allow custom JsonConverters to serialize null

Related to discussion here: https://json.codeplex.com/discussions/280134 JSON.NET will not currently allow custom JsonConverter implementations to serialize null. This is a problem for me (and se...

Id #24577 | Release: None | Updated: Sep 26, 2013 at 2:20 PM by warappa | Created: Aug 2, 2013 at 3:43 PM by JamesGreene

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: Sep 23, 2013 at 4:58 PM by Breggles | Created: Mar 5, 2013 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: Oct 30, 2013 at 11:40 AM by tjrobinson | Created: Jan 22, 2013 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, 2013 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, 2013 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, 2013 at 1:48 AM by DanielSchaffer | Created: Feb 15, 2011 at 6:58 AM by sedanwer

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