Running against Jil 2.5.2.0 in a fresh project, this code throws a JilDeserializationException on line 24 with the message Expected character: '"'
and SnippetAfterError
set to the string "}"
.
Last active
August 29, 2015 14:11
-
-
Save couchand/c2c9249446d6071985da to your computer and use it in GitHub Desktop.
Jil Deserialization reduced test case
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Jil; | |
namespace JilDeserializeIssue | |
{ | |
public enum SelectionAlgorithm : int | |
{ | |
} | |
public class Priority | |
{ | |
public SelectionAlgorithm SelectionAlgorithm; | |
} | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var input = "{\"SelectionAlgorithm\":0}"; | |
var res = JSON.Deserialize<Priority>(input); | |
Console.Write(res); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment