James Newton-King
03f7c0b859
Fix serializing types with struct ref properties ( #1924 )
2018-11-25 15:27:11 +13:00
gilad61
e5e901c6d0
Update initialDepth for error handling ( #1550 )
...
* Fix target depth when skipping over handled errors
Keep reading until the reader reaches the initial depth rather than initial depth + 1
* Fix the initialDepth when handling errors in lists
The initialDepth should be +1 when handling deserialization errors in lists and arrays in order to not skip subsequent items
* Add unit tests for dictionary error handling
Ignoring errors in dictionary object by completely removing the bad items from the dictionary
2017-12-26 08:47:41 +13:00
James Newton-King
aa5f28c097
-Added Portable40 back
2017-04-02 10:24:09 +12:00
James Newton-King
f88ae288bc
-Fixed handling error when reading metadata property
2017-04-01 16:49:33 +13:00
James Newton-King
ba514c4610
-Cleaned up preprocessor symbols
2017-03-05 15:12:52 +13:00
James Newton-King
4d0545fe0e
-Test
2017-02-06 13:02:40 +13:00
Pyit Phyo Aung
f50f276b76
Clean up NETFX_CORE directive usage
2016-10-11 14:14:13 +13:00
James Newton-King
5fdfdff453
-Tests
...
-Fixed regression
2016-09-11 22:07:19 +12:00
James Newton-King
12b38ccb19
-Fixed error handling skipping reading the next object value
2016-09-11 19:37:44 +12:00
James Newton-King
e8f4a3b651
-Updated build to use .NET CLI
...
-.NET Standard 1.0 included in package
2016-05-14 13:43:43 +12:00
James Newton-King
dc07e59b0b
-Tests
2015-12-26 18:01:24 +13:00
James Newton-King
7f290b5a85
-JsonReader ReadAsBytes refactor
2015-12-26 13:14:31 +13:00
James Newton-King
eb0cbd6a75
-Formatting
...
-Build
2015-12-04 23:54:38 +13:00
James Newton-King
172c1d8f30
-Fixed inconsistent JsonTextReader.LinePosition
...
-Fixed JsonReader.Path with escaped property names
2015-10-03 17:11:45 +13:00
James Newton-King
7e04b45894
-Fixed passing default values to constructors
2015-05-03 14:17:25 +12:00
James Newton-King
0552affb83
-Renamed aspnetcore50 to dnxcore50
...
-Documentation
2015-04-04 16:13:37 +13:00
James Newton-King
b9af7f227b
-Replace tests console writes with asserts
2015-03-22 12:37:12 +13:00
James Newton-King
88eeb8ba92
-Fixed MetadataTypeAttribute reflection bug by using CustomAttributeData
...
-Fixed immutable collections bug by getting type from known assembly
-Added support from running tests on aspnetcore50
2014-10-18 00:00:26 +13:00
James Newton-King
99df43eb4d
-Tests line endings
2014-09-12 23:34:20 +12:00
James Newton-King
dfb2ac17a5
-Refactor ExceptionAssert
2014-09-12 21:33:53 +12:00
Redth
69ce5fe690
Fixed whitespace
2014-09-09 09:56:22 -04:00
Redth
59a3ff8b2a
Added check for multiple exception messages to match for mono
...
Some tests check explicitly for a given exception message which differs on Mono, so added possible options to check for so both platforms will pass
2014-09-09 09:40:07 -04:00
James Newton-King
2039a29d91
-Rename SpecialPropertyHandling to MetadataPropertyHandling
2014-04-27 15:05:22 +12:00
James Newton-King
b43afdcc0a
-Added support for MS format JSON dates to ReadAsDateTime
...
-Fixed parsing certain JSON with comments into a JObject
-Tests
2014-03-01 18:31:01 +13:00
James Newton-King
0f77cd1b03
-Added SpecialPropertiesHandling
2014-02-12 01:43:46 +13:00
James Newton-King
40c24307de
-Fixed error when wrapping an exception in a JsonConverter
2013-12-23 22:42:38 +13:00
James Newton-King
44bc7ea246
-Removed SL/WP code and fiels
2013-10-20 16:41:15 +13:00
James Newton-King
bcd6982419
-Code reformat
2013-10-20 15:08:39 +13:00
James Newton-King
4922c4eedc
-Fixed quoting dictionary keys when QuoteNames is false
...
-Fixed potential error handling error
2013-07-20 22:15:34 +12:00
James Newton-King
032bf82e0a
-Readded .NET 4, SL4, WP7, Win8 portable library
...
-Disable SL library build
2013-04-06 11:38:01 +13:00
James Newton-King
0007006850
-Added support for deserializing IList
...
-Fixed bugs
2013-03-30 20:46:11 +13:00
James Newton-King
4d291cfc3d
-Upgraded Windows Phone project to WP8
2013-03-11 20:14:24 +13:00
James Newton-King
92de187a74
-Changed portable assembly to .NET 4.5, Silverlight 5, Win8, WP8
...
-Fixed incorrect namespace when converting XML to JSON
2013-03-06 23:04:26 +13:00
James Newton-King
64414169eb
-Fixed error handling serializing invalid JSON in certain cases
2012-08-05 14:20:17 +12:00
James Newton-King
d18e7d6490
-Improved error handling to return incomplete values at end of JSON content
2012-08-04 00:58:10 +12:00
James Newton-King
be82ab9f0b
-Fixed infinite loop error caused by error handling at the end of JSON content
2012-08-02 20:50:44 +12:00
James Newton-King
4e4fdde9c4
-Fixed various multidimensional array bugs
2012-08-01 23:19:02 +12:00
James Newton-King
55854f1682
-Fixed time zone unit test failure
...
-Removed Metro IDictionary copy
-Fixed Metro build
2012-06-08 05:21:58 -07:00
James Newton-King
bdc73900b5
-Added CheckAdditionalContent to JsonSerializer/JsonSerializerSettings
...
-Fixed bad JSON in an array with error handling creating an infinite loop
-JsonTextReader no longer returns no content after consecutive underlying content read failures
2012-05-17 15:27:26 +12:00
James Newton-King
a0fd6bb3e0
-Fixed infinite loop from an input error when reading an array and error handling is catching the error
...
-Fixed base object error not being handled when deserializing
2012-04-28 01:41:56 +12:00
James Newton-King
a7bddf989f
-Added Path to JsonReaderException/JsonSerializationException messages
...
-Added JsonException
-Fixed all Exceptions thrown to be more specific
2012-04-21 17:25:44 +12:00
James Newton-King
6725edb75c
-Updated to NuGet 1.7
...
-Fixed JsonWriters not using DateTimeZoneHandling
2012-04-17 19:41:36 +12:00
James Newton-King
83618b1ea0
-Line endings
2012-04-08 18:10:07 +12:00
James Newton-King
8471c4ffe1
-Added IgnoreSerializableInterface to DefaultContractResolver
...
-Changed serializing ISerializable types under partial trust to error to fix security issue
-Fixed LinqBridge collision error in .NET 2.0 by moving types to a different namespace
-Fixed JObject.Keys error when object has no items
2012-03-18 16:24:30 +13:00
James Newton-King
5800e97ff3
-Added Newtonsoft.Json.Metro build (whew, what a pain!)
...
-Added .gitignore file
2012-03-15 18:34:51 +13:00
James Newton-King
fd760e3389
-Added DateFormatHandling to control whether dates are written in the MS format or ISO format, with ISO as the default
...
-Added DateTimeZoneHandling to control reading and writing DateTime time zone details
-Added reader/writer specific Formatting, DateFormatHandling and DateTimeZoneHandling to JsonSerializerSettings
-Added feature of reader/writer specific settings to be set on JsonReader/JsonWriter when serializing
-Added ReadAsDate to JsonReader
-Added ReadAsString to JsonReader
-Changed JsonTextReader to automatically read ISO strings as dates
-Refactored ReadAsXXX methods and reduce code redundancy
-Removed unused JsonDateTimeSerializationMode
2012-03-04 18:10:20 +06:00
James Newton-King
0d6ad0b76e
-Added Path to JsonReader/JsonWriter/ErrorContext with the JSON path of the current position
...
-Changed collection type on JsonArrayContract to public
-Changed dictionary key type and dictionary value type on JsonDictionaryContract to public
-Fixed error handling when failing to parse array content
-Fixed error handling when there are missing required properties
2012-02-23 23:07:41 +13:00
JamesNK
a9e100e0a7
-Added line number information to deserialization errors
...
-Added BinaryReader/BinaryWriter constructor overloads to BsonReader/BsonWriter
2012-01-19 05:48:24 +00:00
JamesNK
a96f4d4248
-Upgraded Silverlight project to Silverlight 4
...
-Included .NET 4 features in Silverlight project
2011-01-03 05:19:57 +00:00
JamesNK
43501484fb
-Added .NET 3.5 build
...
-Added dynamic support to LINQ to JSON
-Added dynamic support to serializer
2010-09-11 08:06:53 +00:00