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.
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; }
}
}
This simple json fails to parse. If the commented line get uncommented it works as expected.