.Net Core release notes lead to this sample for JSON serializing, it's using non-existent static `ToString` method though, this changes updates the docs
Commit migrated from https://github.com/dotnet/corefx/commit/
629eea822f258f8d5771b96286eba8ff8c89d997
To serialize an object to a JSON string:
```cs
Person person = ...
- string json = JsonSerializer.ToString(person);
+ string json = JsonSerializer.Serialize(person);
```
Note there are also byte[]-based methods of these which are faster than using the string-based methods because the bytes (as UTF8) do not need to be converted to\from string (UTF16).