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 ...
-
ASP.NET Page Life Cycle Events 22 SEP When a page request is sent to the Web server, the page is run through a series of events du...
-
CREATE FUNCTION [dbo].[GetDeleteFlagStatus] ( @DeleteFlag INT ) RETURNS NVARCHAR(15) AS BEGIN DECLARE @Status NVARCHAR(15); S...
-
Garbage collection is a low-priority process that serves as an automatic memory manager which manages the allocation and release of memory...
No comments:
Post a Comment