James Newton-King
bfddda84f4
-Tests
2017-01-23 17:56:31 +13:00
James Newton-King
73b5d2c409
-Test
2017-01-23 15:10:10 +13:00
James Newton-King
c9cfff4fed
-Changed exception thrown when parsing invalid Unicode escape sequence to JsonReaderException
2017-01-23 15:07:16 +13:00
James Newton-King
07b513cb83
-Removed obsolete JsonConverter.GetSchema
...
-Removed obsolete OnDeserialized, OnDeserializing, OnSerialized, OnSerializing, OnError from JsonContract
-Removed obsolete JsonDictionaryContract.PropertyNameResolver
-Removed obsolete ConstructorParameters, OverrideConstructor, ParametrizedConstructor from JsonObjectContract
2017-01-22 22:28:22 +13:00
James Newton-King
304607a37b
Merge branch 'master' of https://github.com/JamesNK/Newtonsoft.Json
2017-01-19 19:24:57 +13:00
James Newton-King
c4104766ed
-Derp
2017-01-19 19:24:46 +13:00
James Newton-King
2e7b24e9b1
-Added support for TypeConverters to netstandard1.0+
2017-01-19 17:43:07 +13:00
James Newton-King
55afb9aa72
-Added AutoCompleteOnClose to JsonWriter to control whether JSON is auto-completed on JsonWriter.Close
2017-01-19 14:19:52 +13:00
James Newton-King
56e3d7575b
-Fixed deserializing non-string values in some XML nodes
2017-01-19 11:49:09 +13:00
Jon Hanna
8956d3ca9c
Fix issues that are variants of those #1182 ( #1184 )
...
* Catch excessive objects in json being parsed, even if following a comment.
* Include line info on excessive content for deserialisation.
2017-01-19 10:33:30 +13:00
Jon Hanna
9727996b1a
Throw for CheckAdditionalContent when extra content is preceded by comments. ( #1183 )
...
Fixes #1182
2017-01-16 14:48:52 +13:00
James Newton-King
473baa639b
-Optimized IXmlNode memory usage when no child nodes or attributes
2017-01-15 18:37:06 +13:00
Florian Greinacher
b8e60c773b
Change ifdefs to be by feature, not by platform ( #1146 )
...
* First pass
* Second pass
* Third pass
* Temporarily change build script to build only portable
* Add portable features for release build
* Add feature constants to build script
* Add more feature constants to build script
* Fix build issues
* Fix build issues
* Get rid of constants in build.ps1
* HAVE_NUMERICS -> HAVE_BIG_INTEGER
* Remove HAVE_NULLABLE
* Remove HAVE_NUMERICS from csprojs
* Add missing ifdef
* Add feature defines to pj
* Re-enable netstd builds
* Fix defines in pj
* Trying to get better build outputs
* Trying to get the build error
* Use newer cli
* Address review feedback; make netstd build work
* Introduce HAVE_DB_NULL_TYPE
* Adapt to upstream changes; address remaining review feedback
* Adapt to upstream changes; address remaining review feedback
* Rename some constants for constistency
* Address review feedback
* -Fixed build with signed assembly
* Fix merge erorr
* Address review feedback
* Introduce HAVE_NON_SERIALIZED_ATTRIBUTE
* HAVE_IGNORE_DATA_MEMBER_ATTRIBUTE
2017-01-12 11:07:02 +13:00
Jon Hanna
82bfde49e0
Don't eat exceptions from faulted Tasks.
...
If explicitly testing for IsCompleted then one must also test for
IsFaulted and if not handling the exception, return the faulted Task.
2017-01-10 11:12:46 +00:00
James Newton-King
5fefa723ad
-Perf tests
2017-01-09 23:44:08 +13:00
Jon Hanna
c9b2ec8055
Async JToken methods
2017-01-09 23:44:08 +13:00
James Newton-King
de82488549
-Minor code cleanup
...
-Fixed CA warning
2017-01-09 16:46:11 +13:00
Jon Hanna
218c25c859
Call nullable WriteValue overloads in TraceJsonWriter ( #1139 )
...
Fixes #1138
2017-01-07 20:25:46 +13:00
Jon Hanna
260dfedac5
Don't throw on BsonWriter.WriteValue for null Uri or byte[] ( #1143 )
...
Fixes #1142
2017-01-07 18:38:38 +13:00
Jon Hanna
f663060005
Asynchronous methods in readers and writers. ( #1122 )
...
Contributes to #650
2017-01-06 15:33:39 +13:00
stakx
8639ac94ae
Typos
...
Running a spell checker on the whole solution revealed a couple more
typos. This fixes all of those (although internal // line comments are
mostly left alone).
Additionally, convert a very few string.Format occurrences to the pre-
dominant .FormatWith pattern and fix some incorrect message strings.
2017-01-04 03:01:26 +01:00
Jon Hanna
5648cb50f7
Don't write duplicate nulls to trace for byte[]
2016-12-30 15:20:09 +00:00
Jon Hanna
2abc38a0ad
Don't write duplicate nulls to trace for object or Uri
...
Fixes #1120
2016-12-30 15:06:52 +00:00
James Newton-King
322252a989
Merge branch 'master' of https://github.com/JamesNK/Newtonsoft.Json
2016-12-29 20:47:37 +13:00
James Newton-King
2da811b021
-Added support for extension data names to NamingStrategy
...
-Added ProcessExtensionDataNames to NamingStrategy
2016-12-29 20:46:29 +13:00
stakx
7644768580
Make JsonValidatingReader close underlying reader
...
Add `Close` method override in `JsonValidatingReader` so that the
`CloseInput` property is observed properly. Also add a corresponding
unit test.
2016-12-26 12:21:45 +01:00
James Newton-King
5d7300f5b4
-Fixed tests
2016-12-26 15:00:40 +13:00
James Newton-King
4099870390
-Added support for any combination of paths and values in JSONPath filter expressions
2016-12-26 14:43:07 +13:00
James Newton-King
133bbc2d38
-Fixed roundtripping double.MaxValue and float.MaxValue as dictionary keys
2016-12-10 17:23:43 +13:00
James Newton-King
3c1fdf9fdd
-Derp
2016-12-08 09:50:07 +13:00
James Newton-King
4d425ccd06
-Fix merging null with complex type and MergeNullValueHandling.Ignore
2016-12-08 09:47:01 +13:00
James Newton-King
be8ca7a870
-Refactor
2016-11-27 13:58:21 +13:00
James Newton-King
5269ce81c0
-Fixed serializing protected override properties
2016-11-27 13:33:52 +13:00
James Newton-King
b2afa9d674
-Fixed StringEnumConverter when EnumMember defines members that differ only by case
2016-11-06 20:58:32 -08:00
Mikko Rantanen
b47f7440d1
Fix null reference error when deserializing bytes
...
If the JSON contained empty object "{}" for a byte[] property, the `JsonReader` ended up trying to read the object content despite the fact that the content didn't exist. This caused a null reference exception.
The fix ensures the value exists before trying to read it. If the value doesn't exist, the execution ends up in "Unexpected token" exception with way more informative error message.
2016-11-05 15:38:52 +02:00
James Newton-King
e2dc61b8f3
-Test
2016-11-05 23:42:40 +13:00
James Newton-King
803403ae21
-Fixed deserializing generic only IList types with a constructor override
2016-11-05 23:21:34 +13:00
Hugh Bellamy
123e8a54c5
Add a test for deserializing an IEnumerable with implicit conversion
2016-10-31 09:29:26 +00:00
James Newton-King
ae074a3469
-Fixed incorrectly parsing scan filter when name is quoted
...
-Added support for multiple names in scan filter
2016-10-28 13:25:52 +13:00
James Newton-King
26d8871254
Merge pull request #1044 from pyitphyoaung/Breaking-up-JsonTextReaderTest
...
Break up JsonTextReaderTest class into smaller test classes
2016-10-25 17:02:37 +13:00
James Newton-King
2d4b86b08e
Merge branch 'is-reference-bug' of https://github.com/TylerBrinkley/Newtonsoft.Json into TylerBrinkley-is-reference-bug
2016-10-25 16:09:36 +13:00
James Newton-King
29c84fd7c2
-Improved error when attempting to convert root JSON object property to an XML attribute
2016-10-25 14:43:27 +13:00
James Newton-King
b7e77700ac
-Added auto outlines to many documentation pages
2016-10-24 16:12:52 +13:00
James Newton-King
0721bd4dec
-Fixed not erroring when deserializing incomplete JSON with a parameterized constructor
2016-10-24 14:20:59 +13:00
James Newton-King
570a7ca078
-Fixed deserializing a duplicate dictionary key from a parameterized constructor
2016-10-24 12:57:17 +13:00
James Newton-King
fb1acd0c83
Merge pull request #1051 from TylerBrinkley/nullable-struct-typename-bug
...
Stops including typename for nullable structs using TypeNameHandling.Auto
2016-10-19 10:15:15 +13:00
TylerBrinkley
53278cbe57
Added deserialization test and cleaned up the tests
2016-10-18 12:05:49 -05:00
TylerBrinkley
2a28dcc544
Stops including the typename for nullable structs using TypeNameHandling.Auto, fixes #1050
2016-10-18 11:34:43 -05:00
Pyit Phyo Aung
26ae7d07fc
Break up JsonTextReaderTest class into smaller test classes
2016-10-14 00:20:09 +13:00
Pyit Phyo Aung
0115df6e39
Merge branch 'master' into Move-classes-to-files-under-TestObjects
...
# Conflicts:
# Src/Newtonsoft.Json.Tests/Converters/IsoDateTimeConverterTests.cs
# Src/Newtonsoft.Json.Tests/Linq/JObjectTests.cs
# Src/Newtonsoft.Json.Tests/Schema/ExtensionsTests.cs
# Src/Newtonsoft.Json.Tests/Serialization/DependencyInjectionTests.cs
# Src/Newtonsoft.Json.Tests/Serialization/ExtensionDataTests.cs
# Src/Newtonsoft.Json.Tests/Serialization/PopulateTests.cs
# Src/Newtonsoft.Json.Tests/Serialization/TypeNameHandlingTests.cs
# Src/Newtonsoft.Json.Tests/TestObjects/Money/Currency.cs
2016-10-13 14:49:15 +13:00