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:
| Updated: Sep 22 at 2:59 PM by ledzeppln | Created: Sep 22 at 2:59 PM by ledzeppln
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:
| Updated: Sat at 10:35 PM by JamesNK | Created: Aug 28 at 2:34 AM by eggers
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:
| Updated: Aug 20 at 7:00 AM by giacoder | Created: Aug 20 at 7:00 AM by giacoder
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:
| Updated: Aug 19 at 6:03 PM by allanx2000 | Created: Aug 19 at 6:03 PM by allanx2000
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:
| Updated: Jul 2 at 7:23 PM by GandalfThePlaid | Created: Jul 2 at 7:23 PM by GandalfThePlaid
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:
| Updated: Jun 30 at 1:34 PM by Gorban | Created: Jun 30 at 1:34 PM by Gorban
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:
| Updated: Jun 27 at 7:50 PM by AndrewGaspar | Created: Jun 27 at 7:50 PM by AndrewGaspar
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:
| Updated: Aug 15 at 6:32 PM by jlspublic | Created: Jun 18 at 2:51 PM by vjgn
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:
| Updated: Jun 13 at 3:24 PM by WichitaJS | Created: Jun 13 at 3:22 PM by WichitaJS
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=22.214.171.124, Culture=neutral, PublickKeyToken=30...
Id #25548 | Release:
| Updated: Jun 12 at 8:10 AM by StevenWang | Created: Jun 12 at 3:19 AM by StevenWang