dotnet-core/release-notes/3.0/preview/api-diff/preview6/3.0-preview6_System.Text.Json.Serialization.md
William Godbe 89589fec4d
Add API diff between .NET Core 3.0 preview5 and preview6. (#2841)
* Add API diff between .NET Core 3.0 preview5 and preview6.

* Fix title in Standalon-packages.md file
2019-06-10 16:02:34 -07:00

1.2 KiB

System.Text.Json.Serialization

 namespace System.Text.Json.Serialization {
+    public sealed class JsonExtensionDataAttribute : JsonAttribute {
+        public JsonExtensionDataAttribute();
+    }
     public sealed class JsonPropertyNameAttribute : JsonAttribute {
-        public JsonPropertyNameAttribute(string propertyName);
+        public JsonPropertyNameAttribute(string name);
-        public string Name { get; set; }
+        public string Name { get; }
     }
     public static class JsonSerializer {
+        public static object ReadValue(ref Utf8JsonReader reader, Type returnType, JsonSerializerOptions options = null);
+        public static TValue ReadValue<TValue>(ref Utf8JsonReader reader, JsonSerializerOptions options = null);
-        public static byte[] ToBytes(object value, Type type, JsonSerializerOptions options = null);

-        public static byte[] ToBytes<TValue>(TValue value, JsonSerializerOptions options = null);

+        public static byte[] ToUtf8Bytes(object value, Type type, JsonSerializerOptions options = null);
+        public static byte[] ToUtf8Bytes<TValue>(TValue value, JsonSerializerOptions options = null);
     }
 }