Tag: asp.net webapi
-
Removing $id from JSON returned by WebApi
If you’re using the default JSON formatter (ie- haven’t set another one up) your outputted JSON may look something like this: [ { $id: “1”, FirstName: “John”, LastName: “Smith”, }, { $id: “2”, FirstName: “Sarah”, LastName: “Harris”, }, { $id: “3”, FirstName: “Michael”, LastName: “Jones”, }, { $id: “4”, FirstName: “Harry”, LastName: “Green”, } ]…