This is a guess 🙂
Is it because the ID is a string? What happens if you change it to int?
I mean:
public int Id { get; set; }
More Related Contents:
- ASP.NET Core API only returning first result of list
- Entity Framework change connection at runtime
- A circular reference was detected while serializing an object of type ‘SubSonic.Schema .DatabaseColumn’.
- How to write a JSON file in C#?
- How to add/update child entities when updating a parent entity in EF
- Failed to serialize the response in Web API with Json
- Circular reference detected exception while serializing object to JSON
- Entity Framework Core: A second operation started on this context before a previous operation completed
- Web API Put Request generates an Http 405 Method Not Allowed error
- What is the difference between PreserveReferencesHandling and ReferenceLoopHandling in Json.Net?
- EF 4.1 – Code First – JSON Circular Reference Serialization Error
- Set default global json serializer settings
- HttpClient not supporting PostAsJsonAsync method C#
- Complex type is getting null in a ApiController parameter
- Self referencing loop detected – Getting back data from WebApi to the browser
- LINQ to Entities does not recognize the method ‘System.Web.Mvc.FileResult’
- JSON serialize properties on class inheriting list [duplicate]
- Strings sent through Web API’s gets wrapped in quotes
- How to prevent a single object property from being converted to a DateTime when it is a string
- Return Json, but it includes backward slashes “\”, which I don’t want
- JSON Deserialization – String Is Automatically Converted To Int
- Adding a custom query backed Navigation Property to ODataConventionModelBuilder
- Web API complex parameter properties are all null
- Is there a way in Json.NET serialization to distinguish between “null because not present” and “null because null”?
- Using Serializable attribute on Model in WebAPI
- Create a strongly typed c# object from json object with ID as the name
- Convert object to JSON string in C# [duplicate]
- Post byte array to Web API server using HttpClient
- Error-Attempt by method ‘X.set_DbConnection(System.Data.Common.DbConnection)’ to access method ‘Y.get_Settings()’ failed
- What is the difference between DependencyResolver.SetResolver and HttpConfiguration.DependencyResolver in WebAPI