05-06-2024, 10:40 AM
Why can't the following code exist simultaneously?
https://i.ibb.co/9yzGyJX/AAA.gif
https://i.ibb.co/9yzGyJX/AAA.gif
// script "LaHttp Run _T2.cs"
/*/ c LaHttp.cs; /*/ //.
using System.Text.Json;
using System.Text.Json.Nodes;
//..
// 6
internet.http.Post("http://localhost:4455/JsonSimple", internet.jsonContent(new R1(5, "text"))); record R1(int i, string s);
//internet.http.Post("http://localhost:4455/JsonSimple", internet.jsonContent(new { i = 5, s = "text" }));
// 7
//Arrays with any number of elements can be passed using JSON. The new HTTP server code makes it easier.
//LaHttp.CallJ("TestJsonArray", new string[] { "a", "b" });
internet.http.Post("http://localhost:4455/TestJsonArray", internet.jsonContent(new string[] { "a", "b" }));