You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2022. It is now read-only.
string json = @"{
""Email"": ""[email protected]"",
""Active"": ""true"",
""CreatedDate"": ""2013-01-20T00:00:00Z"",
""Roles"":
[
""User"",
""Admin""
]
}";
public class Item
{
public string id { get; set; }
public string ppu { get; set; }
public Batters batters { get; set; }
public Ingredient[] toppings { get; set; }
}
public class Batters
{
public List<Ingredient> batter { get; set; }
}
public class Ingredient
{
public string id { get; set; }
public string type { get; set; }
}
static void Main(string[] args)
{
var item = JsonSerializer.Deserialize<Item>( json );
}
I get System.TypeLoadException: 'Type 'Utf8Json.Formatters.Program+ItemFormatter1' from assembly 'Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullFalseNameMutateOriginal, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is attempting to implement an inaccessible interface.'
I'm executing this in the 'PerfBenchmark' project provided with the sourcecode to avoid any possible misconfiguration.
What's the problem?
The text was updated successfully, but these errors were encountered:
I'm trying to parse a very simple json
I get System.TypeLoadException: 'Type 'Utf8Json.Formatters.Program+ItemFormatter1' from assembly 'Utf8Json.Resolvers.DynamicObjectResolverAllowPrivateFalseExcludeNullFalseNameMutateOriginal, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is attempting to implement an inaccessible interface.'
I'm executing this in the 'PerfBenchmark' project provided with the sourcecode to avoid any possible misconfiguration.
What's the problem?
The text was updated successfully, but these errors were encountered: