Skip to content

Instantly share code, notes, and snippets.

@mythz
Created December 10, 2017 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mythz/84b21f486091631f2d6b230027ef20e0 to your computer and use it in GitHub Desktop.
Save mythz/84b21f486091631f2d6b230027ef20e0 to your computer and use it in GitHub Desktop.
JsonObject null response
using System.Linq;
using ServiceStack;
using ServiceStack.Text;
public class CloudflareResponse
{
public JsonObject result { get; set; }
}
var json = "{\"result\":null}";
var dto = JsonSerializer.DeserializeFromString<CloudflareResponse>(json);
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ServiceStack.Text" version="4.5.14" targetFramework="net45" />
<package id="ServiceStack.Client" version="4.5.14" targetFramework="net45" />
<package id="ServiceStack.Interfaces" version="4.5.14" targetFramework="net45" />
</packages>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment