public void JSON_SerializeMarshall() { CommonShared.Something s = new CommonShared.Something { Name = "something", DateOfBirth = DateTime.Now }; global::Core.Serialization.JSON.Newtonsoft.Json.JSON json = null; json = new global::Core.Serialization.JSON.Newtonsoft.Json.JSON(); string json_text = json.SerializeMarshall <CommonShared.Something>(s); return; }
public void JSON_DeserializeUnmarshall() { string json_text = @" { ""Name"":""something"", ""DateOfBirth"":""2021-10-06T18:07:06.901969+02:00"" } "; global::Core.Serialization.JSON.Newtonsoft.Json.JSON json = null; json = new global::Core.Serialization.JSON.Newtonsoft.Json.JSON(); CommonShared.Something s = json.DeserializeUnmarshall <CommonShared.Something>(json_text); return; }