Last active
July 17, 2018 06:51
-
-
Save a3dho3yn/4443d0dbfab92c819d4cb5d043c22bf4 to your computer and use it in GitHub Desktop.
ServiceStack.Text Deserializer Issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using ServiceStack; | |
using ServiceStack.Text; | |
using System.Collections.Generic; | |
public class Request | |
{ | |
public bool? IsOk {get; set;} | |
} | |
var req1 = "{\"IsOk\": \"fu\"}".FromJson<Request>(); | |
var req2 = "{\"IsOk\": \"ere\"}".FromJson<Request>(); | |
req1.PrintDump(); | |
req2.PrintDump(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="ServiceStack.Text" version="5.0.2" targetFramework="net45" /> | |
<package id="ServiceStack.Client" version="5.0.2" targetFramework="net45" /> | |
<package id="ServiceStack.Interfaces" version="5.0.2" targetFramework="net45" /> | |
</packages> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment