Commit Graph
78 Commits
Author SHA1 Message Date
James Newton-King b3e667fa78 -Fixed tests 2014-09-12 23:56:17 +12:00
James Newton-King dfb2ac17a5 -Refactor ExceptionAssert 2014-09-12 21:33:53 +12:00
James Newton-King a0f9df8a14 Merge branch 'master' of github.com:JamesNK/Newtonsoft.Json 2014-09-10 20:04:48 +12:00
James Newton-King 352e52dda0 -Tests
-Documentation
2014-09-10 20:04:39 +12:00
Redth 69ce5fe690 Fixed whitespace 2014-09-09 09:56:22 -04:00
Redth 831e32809e Added Exception.Throws overload to take multiple possible messages to match
This way tests can pass in multiple possible string matches which the runtime may use as a message depending on the given platform (e.g.: MS-Runtime vs Mono)
2014-09-09 09:39:05 -04:00
Redth aa6c474999 Changed tests to explicitly assert for strings with \r\n
As opposed to leaving it up to the IDE to decide at compile time by having newlines in the actual document
2014-09-09 09:35:01 -04:00
James Newton-King 51212d92b1 -Fixed directly serializing XmlElements 2014-07-04 17:28:36 +12:00
James Newton-King 2960a7090e -Added additional validation when parsing numbers 2014-06-29 22:16:45 +12:00
James Newton-King 72874ec3a3 -Fixed test 2014-06-28 00:42:51 +12:00
James Newton-King 3335ae4e20 -Fixed property after empty array JSONPath queries
-Fixed error handling when last value in array or object fails
2014-06-28 00:42:41 +12:00
James Newton-King f0c79cd0ea -Fixed not throwing JsonReaderException when parsing certain invalid numbers 2014-06-15 01:30:21 +12:00
Jeff Foster c0a5be3524 Fix spelling of separator 2014-03-10 10:33:55 +00:00
James Newton-King c4da9cfb17 -Added support for reading single line comments 2014-01-19 12:50:56 +13:00
James Newton-King fdb2811bae -Fixed WinRT tests 2014-01-11 00:00:50 +13:00
James Newton-King cc730cc860 -Improved number parsing error message 2013-12-26 22:04:56 +13:00
James Newton-King b06f137513 -Added support for reading multiple pieces of JSON with a JsonReader 2013-12-07 22:06:37 +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 e49d8e8b02 -Fixed parsing large floating point numbers 2013-07-01 19:55:02 +12:00
James Newton-King 13aa07f63e -Fixed potential inifinite loop when parsing unquoted value
-Added NuGet install.ps1
-Incremented version to 5.0.6
2013-06-01 14:18:20 +12:00
James Newton-King 95665429a4 -Fixed build 2013-04-23 01:26:48 +12:00
James Newton-King 2bdf5c9b88 -Fixed not overflowing during integer parse 2013-04-23 01:05:30 +12:00
James Newton-King b6d3168ed8 -Refactored parsing dates
-Refactored writing integers
-Refactored JsonConvert
2013-04-21 18:27:08 +12:00
James Newton-King 695bb8368f -Fixed build
-Removed unused code
2013-04-06 15:19:33 +13:00
James Newton-King 77bce8f5de -Changed portable assembly to be .NET 4.5, WP8, Win8 2013-03-31 16:12:52 +13:00
James Newton-King bef6c4c11a -Fixed integer parsing overflow bug 2013-03-30 17:39:08 +13:00
James Newton-King 73187dde1e -Performance 2013-03-30 16:59:08 +13:00
James Newton-King 57d9cb898d -Fixed build 2013-03-29 17:03:29 +13:00
James Newton-King 70f5a1dced -Added FloatParseHandling
-Fixed build
2013-03-26 21:53:28 +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 f42a6ca001 -Fixed WinRT build 2013-03-04 14:35:58 +13:00
James Newton-King f9fa0b00e7 -Added DeserializeAnonymousType overload with JsonSerializerSettings
-Added support for specifying the root type when serialize JSON to use with TypeNameHandling.Auto
-Fixed recursively reading type wrapper objects when deserializing
2013-02-23 22:09:51 -08:00
James Newton-King efc946d8df -Added GetValue and TryGetValue with StringComparison to JObject
-Fixed SecAnnotate warnings
-Fixed error when comparing empty JObjects
-Fixed error when comparing DateTime JValue with a DateTimeOffset JValue
2012-09-13 22:49:35 +12:00
James Newton-King c3158291cc -Fixed tests on non-English Windows 2012-09-08 19:34:06 +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 fdedb2a40b -Fixed Metro build 2012-05-06 02:32:24 +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 852a980659 -Added DateParseHandling 2012-04-19 00:02:11 +12:00
James Newton-King adecef2126 -Incremented version to 4.5.3
-Changed default DefaultContractResolver.IgnoreSerializableAttribute to true
-Fixed MaxDepth on JsonReader recursively throwing error
-Fixed SerializationBinder.BindToName not being called with full assembly names
2012-04-14 00:58:36 +12:00
James Newton-King 436c3f9a93 -Fixed reading invalid unicode surrogate pairs 2012-04-10 20:48:42 +12:00
James Newton-King e3cec969ef -Added support for Serializable attribute and MemberSerialization.Fields
-Added support for ignoring properties with NonSerializable attribute
-Added MaxDepth to JsonReader/JsonSerializer/JsonSerializerSettings
2012-04-08 19:33:09 +12:00
James Newton-King 83618b1ea0 -Line endings 2012-04-08 18:10:07 +12:00
James Newton-King a032f4bbf3 -Fixed deserializing a null string throwing a NullReferenceException
-Fixed JsonTextReader reading from a slow stream
-Fixed CultureInfo not being overridden on JsonSerializerProxy
-Fixed full trust security check in .NET 2.0 & .NET 3.5
-Improved writing JSON with indent performance
2012-03-31 14:30:14 +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
James Newton-King 4f8832adc0 -Fixed error when deserializing nullable types with no content
-Changed JsonReaders to set TokenType to JsonToken.None after finishing content
-Changed the ReadAsXXX methods to return null instead of throwing an error when there is no content
2012-02-19 01:25:47 +13:00