public void JSON_SerializeMarshall() { CommonShared.Something s = new CommonShared.Something { Name = "something", DateOfBirth = DateTime.Now }; global::Core.Serialization.JSON.System.Text.Json.Simple.JSON json = null; json = new global::Core.Serialization.JSON.System.Text.Json.Simple.JSON(); string json_text = json.SerializeMarshall <CommonShared.Something>(s); return; }
public void JSON_DeserializeUnmarshall() { string json_text = null; global::Core.Serialization.JSON.System.Text.Json.Simple.JSON json = null; foreach (string f in Tests_JSON_DeserializationFromFiles.files) { json_text = global::System.IO.File.ReadAllText(f); } json = new global::Core.Serialization.JSON.System.Text.Json.Simple.JSON(); CommonShared.Something s = json.InferDeduceSchema(json_text); return; }
public void JSON_DeserializeUnmarshall() { string json_text = @" { ""Name"":""something"", ""DateOfBirth"":""2021-10-06T18:07:06.901969+02:00"" } "; global::Core.Serialization.JSON.System.Text.Json.Simple.JSON json = null; json = new global::Core.Serialization.JSON.System.Text.Json.Simple.JSON(); CommonShared.Something s = json.DeserializeUnmarshall <CommonShared.Something>(json_text); return; }