《강북오피》 《bamWar .cOm》 〔역삼휴게텔〕 《수원오피》

《강북오피》 《bamWar .cOm》 〔역삼휴게텔〕 《수원오피》 《강북오피》 《bamWar .cOm》 〔역삼휴게텔〕 《수원오피》 《강북오피》 《bamWar .cOm》 〔역삼휴게텔〕 《수원오피》 《강북오피》 《bamWar .cOm》 〔역삼휴게텔〕 《수원오피》 《강북오피》 《bamWar .cO...

Id #26009 | Release: None | Updated: Feb 27 at 9:06 AM by lovemaka5214 | Created: Feb 27 at 9:06 AM by lovemaka5214

Deserialization fails for arrays with TypeNames.

Eg: void Main() { string data = File.ReadAllText(@"SomeFile.txt"); var jsonSettings = new JsonSerializerSettings { ObjectCreationHandling = ObjectCreationHa...

Id #25989 | Release: None | Updated: Feb 17 at 9:51 AM by prasannavl | Created: Feb 17 at 9:51 AM by prasannavl

JsonConverter and References

I expected that types converted via JsonConverter could benefit from the settings: PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.Objects Problem 1. Unfortunately this wor...

Id #25983 | Release: None | Updated: Feb 13 at 4:19 PM by raffaeler | Created: Feb 13 at 4:19 PM by raffaeler

Serializer to JSON truncates type name

Newtonsoft.JSON 6.0.8 I'm serializing objects with such a code: using (FileStream fs = File.Open(jsonFilePath, FileMode.Create, FileAccess.Write, FileShare.ReadWrite)) ...

Id #25976 | Release: None | Updated: Feb 10 at 11:11 AM by Hlodvig | Created: Feb 10 at 11:07 AM by Hlodvig

Deserializing JSON string to DataTable put values on new rows

When I'm trying to do Dim tempDataTable As DataTable = JsonConvert.DeserializeObject(Of DataTable)(jsonString), every value in the DataTable object gets put on a row (see the picture). Is this int...

Id #25972 | Release: None | Updated: Feb 9 at 12:38 PM by andrieus | Created: Feb 9 at 12:38 PM by andrieus

Serialize method never returns until Task is complete for tasks.

var tx = new TaskCompletionSource<bool>(); JsonConvert.SerializeObject(tx).Dump(); The SerializeObject never returns in this case. And the whole program is stuck until "tx" actually completes. Whi...

Id #25971 | Release: None | Updated: Feb 9 at 12:45 PM by prasannavl | Created: Feb 9 at 12:38 PM by prasannavl

Incorrect libraries installed from NuGet package for PCL

I got problems with the latest version 6.0.8 on Windows 8.1 and Windows Phone 8.1, when using JSON.NET as NuGet package in a PCL library targeting Windows 8.1 and Windows Phone 8.1. The assembly be...

Id #25941 | Release: None | Updated: Jan 23 at 9:30 AM by Will_o_Wisp | Created: Jan 23 at 9:29 AM by Will_o_Wisp

SerializeXmlNode() modifies content if quote is present?

SerializeXmlNode() incorrectly converts the XML content with quotes. It does two modifications: 1) existing quotes are escaped to ' \" ' (slash + quote). 2) the whole resulting string is wrapped in...

Id #25936 | Release: None | Updated: Jan 21 at 6:51 PM by avprokofyev | Created: Jan 21 at 4:00 PM by alaudo

How to handle long integers in DeserializeXmlNode()?

We are getting an InvalidCastException when we try to deserialize the following JSON with long integer number: var json = "{ \"DocumentId\" : 13779965364495889899 }"; JsonConvert.DeserializeXmlNo...

Id #25932 | Release: None | Updated: Jan 21 at 6:51 PM by avprokofyev | Created: Jan 21 at 12:46 AM by alaudo

Medium trust support is broken after 6.0.3

When I replace v6.0.3 of Newtonsoft.Json.dll with a newer version (also checked latest v6.0.8) in a working project, the same code bombs out under partial trust. Here is an example stack trace: [Se...

Id #25931 | Release: None | Updated: Feb 10 at 12:12 PM by niteshluharuka | Created: Jan 20 at 12:19 PM by gtdev

Inconsistent behavior in JsonConvert.DeserializeObject<Hashtable>

Deserializing a Hashtable containing empty string elements in the JSON will produce empty string C# values, until a similar object is serialized, after which deserializing the same JSON will produc...

Id #25919 | Release: None | Updated: Jan 15 at 11:17 PM by tnorrisvnc | Created: Jan 15 at 11:17 PM by tnorrisvnc

DataContract attribute incorrectly inherited

There was a discussion for this here https://json.codeplex.com/discussions/357850 A type deriving from a type decorated with the [DataContract] attribute causes Json.NET to assume opt in serializa...

Id #25889 | Release: None | Updated: Dec 26, 2014 at 11:22 AM by fbrooke | Created: Dec 26, 2014 at 11:22 AM by fbrooke

[JValue] Reference to type 'System.IConvertible' not found

There seems to be some compile-time warning when using JValue in Windows Phone 8.1 application (Windows Store) in Visual Studio 2013. Whenever using the constructor of JValue, I get warning: "Warn...

Id #25853 | Release: None | Updated: Dec 4, 2014 at 2:27 PM by kamenlitchev | Created: Dec 4, 2014 at 2:24 PM by kamenlitchev

JArray.Values<UInt64> doesn't work with values larger than an Int32

foreach(UInt64 value in JArray.Parse("[ 18446744073709551615]").Values<UInt64>()) { Console.WriteLine(value); } Object must implement IConvertible. mscorlib.dll!System.Convert.ChangeType(object va...

Id #25836 | Release: None | Updated: Nov 25, 2014 at 11:52 PM by jpribele | Created: Nov 25, 2014 at 11:52 PM by jpribele

Deserialization of invalid date error does not include position information when using IsoDateTimeConverter

If a date is read with an invalid format, the error message does not include any information about the position of the error. Using this model: class TestModel { [Newtonsoft.Json.JsonConverter...

Id #25829 | Release: None | Updated: Nov 17, 2014 at 11:22 AM by colinbreame | Created: Nov 17, 2014 at 11:22 AM by colinbreame

JsonConvert.DeserializeXNode not available for WP8.1 anymore?

I updated Json.Net from 6.0.3 to 6.0.6 today and found that JsonConvert.DeserializeXNode is not available for WP8.1 anymore, but is still working in my WinRT background task and Windows app. Do I ...

Id #25828 | Release: None | Updated: Nov 16, 2014 at 3:18 PM by sibbl | Created: Nov 16, 2014 at 3:18 PM by sibbl

Newtonsoft.Json.PreserveReferencesHandling.None not being applied

In my Web API config I have the following set: jsonFormatter.SerializerSettings.PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.None; But I still get $id/$ref output when s...

Id #25741 | Release: None | Updated: Sep 22, 2014 at 3:59 PM by ledzeppln | Created: Sep 22, 2014 at 3:59 PM by ledzeppln

Allow setting of $id property for PreserveReferencesHandling

We use guids for our EF ids, it would be great to be able to specify that a particular property could be used as the $id property for purposes of PreserveReferencesHandling

Id #25698 | Release: None | Updated: Oct 18, 2014 at 11:35 PM by JamesNK | Created: Aug 28, 2014 at 3:34 AM by eggers

Cannot install in Windows Phone 7 project

Cannot install in Windows Phone 7 project. While installing with PM> Install-Package Newtonsoft.Json Visual Studio returns an error: Install failed. Rolling back... Install-Package : Could not ...

Id #25679 | Release: None | Updated: Aug 20, 2014 at 8:00 AM by giacoder | Created: Aug 20, 2014 at 8:00 AM by giacoder

Deserialization of large JSON returns tokens with missing/truncated items

I have been using JSON.NET for a long time but now I have run accross an unexpected issue. I am trying to deserialize a really long json string which is an array of objects; I am parsing as JToke...

Id #25678 | Release: None | Updated: Aug 19, 2014 at 7:03 PM by allanx2000 | Created: Aug 19, 2014 at 7:03 PM by allanx2000

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, 2014 at 8:23 PM by GandalfThePlaid | Created: Jul 2, 2014 at 8:23 PM by GandalfThePlaid

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, 2014 at 2:34 PM by Gorban | Created: Jun 30, 2014 at 2: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: Nov 20, 2014 at 9:52 PM by akolomentsev | Created: Jun 27, 2014 at 8:50 PM by AndrewGaspar

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: Aug 15, 2014 at 7:32 PM by jlspublic | Created: Jun 18, 2014 at 3: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, 2014 at 4:24 PM by WichitaJS | Created: Jun 13, 2014 at 4: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, 2014 at 9:10 AM by StevenWang | Created: Jun 12, 2014 at 4: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, 2014 at 9:31 PM by mccc | Created: Jun 4, 2014 at 9: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, 2014 at 8:42 AM by aruzicka | Created: Jun 4, 2014 at 8: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, 2014 at 4:15 AM by Sevensnake | Created: May 13, 2014 at 7:29 PM by crossle86

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, 2014 at 11:56 AM by DangerT | Created: May 2, 2014 at 8: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, 2014 at 2:08 AM by AlexeyKostylev | Created: Apr 14, 2014 at 1: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, 2014 at 1:16 PM by Mike_R | Created: Mar 12, 2014 at 1: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: Feb 20 at 7:52 AM by ThomasZ_rts | Created: Jan 14, 2014 at 2: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: Dec 10, 2014 at 6:13 PM by RandomEngy | Created: Dec 18, 2013 at 7: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, 2014 at 1:32 PM by dcastro | Created: Sep 25, 2013 at 6:11 PM by Breggles

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, 2014 at 1:46 PM by StevenLiekens | Created: Sep 4, 2013 at 4: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: Aug 20, 2014 at 10:01 AM by Krimson | Created: Aug 2, 2013 at 4: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 5:58 PM by Breggles | Created: Mar 5, 2013 at 2:50 PM by RickMohr

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 2:48 AM by JsonSpc | Created: Apr 23, 2012 at 4: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 2:48 AM by B4ptiste | Created: Sep 27, 2011 at 5: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 2:48 AM by DanielSchaffer | Created: Feb 15, 2011 at 7:58 AM by sedanwer

  • 1-41 of 41 Work Items
    • Previous
    • 1
    • Next