Releases: NetLah/Dynamic.Json
Releases · NetLah/Dynamic.Json
New Build Update Dependencies
- Use NetLah.AssemblyInfo.BuildTime.Target@0.2.0-rc1
- Drop reference NetLah.Abstractions
New build for .NET 6.0 RC2 dependencies
- New build for .NET 6.0 RC2 dependencies
- Explicit dependencies on multi Target Frameworks net6.0, net5.0, netstandard2.0
Support multi Target Frameworks: net6.0, net5.0, netstandard2.0
Support multi Target Frameworks: net6.0, net5.0, netstandard2.0
First preview version for basic feature v1.0.0-preview2
Basic feature
const string json = "[ 123, \"abc\", { \"iss\": \"Sso Issuer\", \"iat\": 1607746395 }]";
var djson = System.Text.Json.JsonSerializer.Deserialize<DJson>(json);
Assert.Equal(3, djson.CountMembers);
Assert.Equal(123, (int)(long)djson[0]);
Assert.Equal(123L, djson[0]);
Assert.Equal("abc", djson[1]);
var jwtPayload = (DJson)djson[2];
Assert.Equal("Sso Issuer", jwtPayload["iss"]);
Assert.Equal(1607746395L, jwtPayload["iat"]);
Preview version for basic feature v1.0.0-beta.2
Basic feature
const string json = "[ 123, \"abc\", { \"iss\": \"Sso Issuer\", \"iat\": 1607746395 }]";
var djson = System.Text.Json.JsonSerializer.Deserialize<DJson>(json);
Assert.Equal(3, djson.CountMembers);
Assert.Equal(123, (int)(long)djson[0]);
Assert.Equal(123L, djson[0]);
Assert.Equal("abc", djson[1]);
var jwtPayload = (DJson)djson[2];
Assert.Equal("Sso Issuer", jwtPayload["iss"]);
Assert.Equal(1607746395L, jwtPayload["iat"]);
First preview version for basic feature v1.0.0-beta.1
Basic feature
const string json = "[ 123, \"abc\", { \"iss\": \"Sso Issuer\", \"iat\": 1607746395 }]";
var djson = System.Text.Json.JsonSerializer.Deserialize<DJson>(json);
Assert.Equal(3, djson.CountMembers);
Assert.Equal(123, (int)(long)djson[0]);
Assert.Equal(123L, djson[0]);
Assert.Equal("abc", djson[1]);
var jwtPayload = (DJson)djson[2];
Assert.Equal("Sso Issuer", jwtPayload["iss"]);
Assert.Equal(1607746395L, jwtPayload["iat"]);