William Blum
5ff9741f07
Add unit test for and fix bug #92
2019-10-18 16:19:08 -07:00
Erik Lundgren
2701cbeb52
Write field-less union case name without formatting
2019-06-07 15:54:29 -07:00
William Blum
3963628368
Add `Compact.Strict` serializer handleing missing and optional properties
2019-01-22 18:35:10 -08:00
Jonathan Ohlrich
382338252f
use property name resolver in compact union converter
2018-10-17 08:13:06 -07:00
William Blum
54d80fc606
Add test to check that legacy deserialization handles out of order properties
2018-07-26 01:06:08 -07:00
William Blum
3839300222
Add test for tuples with more than 14 elements: legacy serialization breaks down tuples in buckets of 7 max.
...
Add FsCheck generated tests for tuples
2018-07-26 01:06:08 -07:00
Max Wilson
4fa75ca1e8
Add failing test case
2018-07-26 01:06:08 -07:00
William Blum
e16e06c42b
Add unit test to check backward compatibility of tuple serializer. Test currently fails as expected with:
...
```
Message: Test method Microsoft.FSharpLu.Json.Tests+JsonSerializerTests.Tuple serialization is backward compatible threw exception:
System.ArgumentException: Type 'System.Tuple`2[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' is not an F# union type.
Parameter name: unionType
```
2018-07-26 01:06:08 -07:00
William Blum
6c701d2381
Parameterize compact serializer to allow switching between legacy and new tuple serialization
...
Fix bug in legacy tuple serialization
2018-07-26 01:06:08 -07:00
William Blum
a811498f05
Quick naive implementation of deserialization of heterogenous JSON array
...
TODO: make it backward compat with legacy serialization
2018-07-26 01:06:08 -07:00
William Blum
f30ca5f62a
Json: convert tuples to heterogeneous arrays.
...
- Draft of changes to be made
- Add test for serialization of tuples as lists
2018-07-26 00:50:37 -07:00
Paweł Bańka
35b2d1d1dc
Add more unit tests
2017-08-01 00:06:24 +02:00
Paweł Bańka
d24a4c3201
Add special handling for CamelCasePropertyContractResolver
2017-08-01 00:05:47 +02:00
William Blum
187e9d1260
Force boxing for type `Option<'a>` if the structure of type `'a` may lead to ambiguities. (Better and more complete fix for #3 )
...
This ambiguity occurs for instance for discriminated union or record types that happen to have a field named 'Some'
2016-08-18 11:26:48 -07:00
William Blum
00f57031e3
More unit test to cover ambiguity with fields named 'Some'
2016-08-15 23:19:53 -07:00
William Blum
49e4dba05b
Fix bug #3 and add corresponding test case
2016-08-11 18:50:16 -07:00
William Blum
bd9251acba
PR 717: Expose serializer as module instead of static type
...
- Update Nuget package name
- Expose serializer as module instead of static type
2016-07-26 15:59:04 -07:00
William Blum
b4fbebb15e
PR 710: A new Compact Json serializer backward compatible with JSon.Net
...
- Compact Json serializer backward compatible with JSon.Net.
Unit tests to check that Compact and Default serializers coincide
Unit tests to check that BackwardCompatible can indeed deserialize Json.net output
2016-07-26 15:59:03 -07:00
William Blum
59d98dbf33
PR 707: Json serialization handling of nested Some types with unit tests
...
- Json serialization handling of nested Some types with unit tests
2016-07-26 15:59:02 -07:00
William Blum
fb4c2281d5
PR 702: Refactoring for GitHub OSS
...
New project FSharp.Json with F# serialization converters
Promoted new helpers to FSharpLu
Json serialization unit tests
Update nuget specs
Code comments, F# runtime 4.4.0
Factorize Json code with functor
Cleanup doc and comments
2016-07-26 15:59:01 -07:00