FastJsonParser icon indicating copy to clipboard operation
FastJsonParser copied to clipboard

Parser fails to parse a simple json.

Open binis2 opened this issue 9 years ago • 1 comments

using System; using System.Collections.Generic; using System.Text.Json;

namespace ConsoleApplication1 { class Program { private class Outcome { //public int odds { get; set; } public string oddsFractional { get; set; } }

    static void Main(string[] args)
    {
        var parser = new JsonParser();
        var evnts = parser.Parse<Outcome>("{\"odds\":550,\"oddsFractional\":\"1 / 1\"}");
    }
}

}

This simple json fails to parse. If the commented line get uncommented it works as expected.

binis2 avatar Sep 05 '15 17:09 binis2

@binis2 Thanks for reporting.

ysharplanguage avatar Sep 05 '15 20:09 ysharplanguage