Tagasp.net webapi

Removing $id from JSON returned by WebApi

R

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", } ] Notice the $id element appearing. What...