Skip to content

Instantly share code, notes, and snippets.

@a3dho3yn
Last active July 17, 2018 06:51
Show Gist options
  • Save a3dho3yn/4443d0dbfab92c819d4cb5d043c22bf4 to your computer and use it in GitHub Desktop.
Save a3dho3yn/4443d0dbfab92c819d4cb5d043c22bf4 to your computer and use it in GitHub Desktop.
ServiceStack.Text Deserializer Issue
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();
<?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