Skip to content

fixed Json.NET casing #26743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ In these cases, the threat model and security guarantees are the same as the [Da

## Deserialize a DataSet or DataTable via JsonConvert

The popular third-party Newtonsoft library [JSON.NET](https://www.newtonsoft.com/json) can be used to deserialize `DataSet` and `DataTable` instances, as shown in the following code:
The popular third-party Newtonsoft library [Json.NET](https://www.newtonsoft.com/json) can be used to deserialize `DataSet` and `DataTable` instances, as shown in the following code:

```csharp
using System.Data;
Expand Down
10 changes: 5 additions & 5 deletions docs/fsharp/get-started/get-started-command-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ open Newtonsoft.Json

let getJsonNetJson value =
let json = JsonConvert.SerializeObject(value)
$"I used to be {value} but now I'm {json} thanks to JSON.NET!"
$"I used to be {value} but now I'm {json} thanks to Json.NET!"
```

Add the Newtonsoft.Json NuGet package to the Library project.
Expand Down Expand Up @@ -105,7 +105,7 @@ open Library

[<EntryPoint>]
let main argv =
printfn "Nice command-line arguments! Here's what JSON.NET has to say about them:"
printfn "Nice command-line arguments! Here's what Json.NET has to say about them:"

for arg in argv do
let value = getJsonNetJson arg
Expand Down Expand Up @@ -138,10 +138,10 @@ dotnet run Hello World
You should see the following results:

```console
Nice command-line arguments! Here's what JSON.NET has to say about them:
Nice command-line arguments! Here's what Json.NET has to say about them:

I used to be Hello but now I'm ""Hello"" thanks to JSON.NET!
I used to be World but now I'm ""World"" thanks to JSON.NET!
I used to be Hello but now I'm ""Hello"" thanks to Json.NET!
I used to be World but now I'm ""World"" thanks to Json.NET!
```

## Next steps
Expand Down
Loading