How could I output JSON from node properties? I have the following, but it seems to just wrap the value in quotes, I'm not really sure how to manipulate the string into the proper format (below)
Current: @Html.Raw(Json.Encode(@page.uBlogsyPostDate.ToString("yyyy-mm-dd HH:mm"))) which outputs: "2014-35-23 14:35"
Incase anyone needs this, here's how you can do it.
var news = new { date = @page.uBlogsyPostDate.ToString("yyyy-MM-dd HH:mm"), type = @page.Name, title = @page.Name, description = @page.uBlogsyContentSummary, url = @page.Url };
Output JSON from node properties
How could I output JSON from node properties? I have the following, but it seems to just wrap the value in quotes, I'm not really sure how to manipulate the string into the proper format (below)
Current: @Html.Raw(Json.Encode(@page.uBlogsyPostDate.ToString("yyyy-mm-dd HH:mm"))) which outputs: "2014-35-23 14:35"
Correct format:
Incase anyone needs this, here's how you can do it.
is working on a reply...