Beispiel #1
0
 public async Task Deserialize_DotNetJson_Complex_AsyncStream()
 {
     ComplexDataStreamUtf8.Position = 0;
     await NetJS.ReadAsync(ComplexDataStreamUtf8, TestData.ComplexJsonObject.GetType());
 }
Beispiel #2
0
 public async Task Serialize_DotNetJson_Simple_AsyncStream()
 {
     var stream = new MemoryStreamForcedAsync();
     await NetJS.WriteAsync(TestData.SimpleJsonObject, TestData.SimpleJsonObject.GetType(), stream);
 }
Beispiel #3
0
 public byte[] Serialize_DotNetJson_Complex_ToUtf8()
 {
     return(NetJS.ToUtf8Bytes(TestData.ComplexJsonObject));
 }
Beispiel #4
0
 public string Serialize_DotNetJson_Complex_ToString()
 {
     return(NetJS.ToString(TestData.ComplexJsonObject));
 }
Beispiel #5
0
 public byte[] Serialize_DotNetJson_Simple_ToUtf8()
 {
     return(NetJS.ToUtf8Bytes(TestData.SimpleJsonObject));
 }
Beispiel #6
0
 public string Serialize_DotNetJson_Simple_ToString()
 {
     return(NetJS.ToString(TestData.SimpleJsonObject));
 }