How should we parse a specific JSON date format in the ASP.NET C#
application?
We are using a third-party vendor for one of our modules in an application
The Web Service Endpoints are provided by a third-party vendor.
For one of the Web Service Endpoints that deals with posting Comments,
our ASP.NET C# web application will get back some JSON data.
I am using James Newton-King Json.NET for processing JSON data.
Within the JSON Data that we receive from the Web Service of the
third-party vendor, we get the following date which is associated with
time that the comment was posted:
\"date_created\": 1375206707,\r\n
Therefore, I created an ASP.NET DataContract C# class that would
correspond to the JSON data that we are receiving.
Furthermore, I have the following DataMember in the C# class that would
correspond to the date of creation associated with the Posted Comment:
[DataMember(Name = "date_created")]
public string ViaFouraCommentCreationDate { get; set; }
Please make suggestions as to how I should parse the following JSON date
format
in the ASP.NET C# world( possibly also involving the James Newton-King
Json.NET):
\"date_created\": 1375206707,\r\n
No comments:
Post a Comment