JObject.Value<Guid> throws exception on valid guid string

http://james.newtonking.com/json/help/index.html?topic=html/M_Newtonsoft_Json_Linq_JObject_GetValue_1.htm Trying to parse from a string to a Guid using the JObject.Value<T> Method will throw an ex...

Id #25599 | Release: None | Updated: Jul 10 at 8:18 AM by Snebjorn | Created: Jul 9 at 5:16 PM by Snebjorn

Issue with Whitespace in select token Version 6.0.3

Hi, I have just upgraded from version 5.0.1 to 6.0.3 and one of the things that has now started failing is when there is a space in the property name for eg public class Product { /// <summar...

Id #25597 | Release: None | Updated: Jul 9 at 11:34 AM by vmnadig | Created: Jul 9 at 11:29 AM by vmnadig

References context lost when using a custom JsonConverter.

I've created a JsonConverter for one of my objects to write and parse an added property. I've followed the example provided with the documentation for CustomJsonConverter but there seems to either...

Id #25586 | Release: None | Updated: Jul 2 at 7:23 PM by GandalfThePlaid | Created: Jul 2 at 7:23 PM by GandalfThePlaid

can I request a feature to ignore the TypeConvertor?

I have a class , for support a Window Form Designer, I define a custom TypeConvertor: and also I need to implement a web deisigner, but JsonConvert will call the TypeConvertor to get the string ret...

Id #25583 | Release: None | Updated: Jul 2 at 9:43 AM by jianyi | Created: Jul 2 at 9:43 AM by jianyi

Add support for conditional serialization with dynamically added ShouldSerialize-prefixed predicate delegates

Json.NET Documentation specifies 'the ability to conditionally serialize properties by placing a ShouldSerialize method on a class'. However, testing with a dynamically added System.Func<bool> to S...

Id #25579 | Release: None | Updated: Jun 30 at 1:34 PM by Gorban | Created: Jun 30 at 1:34 PM by Gorban

Use System.IO.Stream async IO functions to offer async serialization and deserialization

Hello - In .NET 4.5, async I/O methods were added to System.IO.Stream. It would be awesome if JsonTextReader and JsonSerializer added support for these methods to allow for DeserializeAsync and Se...

Id #25576 | Release: None | Updated: Jun 27 at 7:50 PM by AndrewGaspar | Created: Jun 27 at 7:50 PM by AndrewGaspar

MissingMethodException when deploying to 7.1 emulator. 8 emulator fine.

Trying to implement some backup code for apps I developed for Windows Phone 7.1. I updated JSON.NET yesterday through NuGet and now when I deploy to a 7.1 emulator, I get the following: An unhand...

Id #25567 | Release: None | Updated: Sun at 7:45 AM by Nirmal4G | Created: Jun 19 at 3:20 PM by bdlou

WCF Add service reference and Json.net

When adding reference to a service in a web project that has the json.net package, the generated client proxy is using XmlSerializer instead of DataContractSerializer. If the json.net package is re...

Id #25564 | Release: None | Updated: Jun 19 at 9:12 PM by vjgn | Created: Jun 18 at 2:51 PM by vjgn

Missing System.Xml.Linq Error when serializing an object

Hi, I am trying to create a portable class library that I can use to call a service. I want to use JSon.Net to serialize the objects before sending to the rest service and I want to deserialize wh...

Id #25550 | Release: None | Updated: Jun 13 at 3:24 PM by WichitaJS | Created: Jun 13 at 3:22 PM by WichitaJS

Could not load file or assembly 'Newtonsoft.Json ....'

i just used web api self-host. but there thrown a error when i new HttpSelfHostConfiguration: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublickKeyToken=30...

Id #25548 | Release: None | Updated: Jun 12 at 8:10 AM by StevenWang | Created: Jun 12 at 3:19 AM by StevenWang

Unity 4.5 now requires iOS Pro when using JsonDotNet

Hiya, We have recently upgraded our Unity installations within our studio to 4.5 and begun noticing build errors with team members attempting to create iOS builds -- stemming from a dependency in ...

Id #25530 | Release: None | Updated: Jun 4 at 8:31 PM by mccc | Created: Jun 4 at 8:31 PM by mccc

CustomCreationConverter not use if type name embedded in JSON string

When I deserialize json string which has type embedded in header, my CustomCreationConverter is not used. It is searching for Converters for object instead. It works only if type is explicit in c...

Id #25526 | Release: None | Updated: Jun 4 at 7:42 AM by aruzicka | Created: Jun 4 at 7:42 AM by aruzicka

Object property name has extra space when serialized

I am using Json.Net for .net 2.0 v4.0.2.13623 in a VB.Net project to serialize a complex set of objects to Json. This has worked successfully for months on the same set of objects. Now I am seeing ...

Id #25469 | Release: None | Updated: May 29 at 3:15 AM by Sevensnake | Created: May 13 at 6:29 PM by crossle86

Newtonsoft.Json.JsonSerializationException occurs when deserializing an object with a constant.

I am getting the following exception when deserializing an object with a const definition. Is this expected? {Newtonsoft.Json.JsonSerializationException: Error setting value to 'MY_CONSTANT' on 'M...

Id #25465 | Release: None | Updated: May 13 at 4:42 AM by cmw | Created: May 13 at 4:41 AM by cmw

Use different file name for portable and non-portable Newtonsoft.Json.dll

If you have a solution that uses both portable and non-portable ( =.NET 4.5 core) projects, and build the solution to bin-folder, then the references are copied to the same folder. Now, if you re...

Id #25447 | Release: None | Updated: Jun 16 at 10:56 AM by DangerT | Created: May 2 at 7:48 AM by Thorium

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

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

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: Apr 27 at 6:17 PM by Ozzy1 | 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: Jul 16 at 12:32 PM by dcastro | 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: May 5 at 12:46 PM by StevenLiekens | 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-28 of 28 Work Items
    • Previous
    • 1
    • Next