How to deserialize BSon Element "ISODate" to "string".
e.g. { "_id" : ObjectId("57c2e34ccaefdc0cbe14d614"), "ID" : "1", "Demand" : [ { "assignmentId" : "100", "commonDemandId" : "1000", "createDttm" : ISODate("2016-08-28T00:00:00.000Z") } ] } .
In this BSON Document createDttm has ISODate. What I am doing : var JSS = new JavaScriptSerializer(); var rec = JSS.Deserialize(records[p]);
But this is showing Invalid JSON primitive: ISODate. Please provide with a solution.Have used Json.net also. But not working.Any solution would be hoghly appreciated. Thanks.