Skip to content

Parser fails to parse a simple json. #7

@binis2

Description

@binis2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions