JArray array = new JArray();
array.Add("Manual text");
array.Add(new DateTime(2000, 5, 23));
JObject o = new JObject();
o["MyArray"] = array;
string json = o.ToString();
// {
// "MyArray": [
// "Manual text",
// "2000-05-23T00:00:00"
// ]
// }
Subscribe to:
Post Comments (Atom)
React Hooks - custom Hook
v CustomHook Ø React allows us to create our own hook which is known as custom hook. Example – 1 localStorage Demo Step-1 Create ...
-
Garbage collection is a low-priority process that serves as an automatic memory manager which manages the allocation and release of memory...
-
EXEC sp_MSForEachTable ' IF OBJECTPROPERTY(object_id(''?''), ''TableHasIdentity'') = 1 DBCC CHECKIDENT ...
-
MVC Razor has a pager method i.e. WebGrid.Pager which we can use to create a custom pager for webgrid. WebGrid . Pager ( WebGridPagerMod...
No comments:
Post a Comment