Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ➜ src cat App/Program.fs
- open System
- open Library
- [<EntryPoint>]
- let main argv =
- printfn "Nice command-line arguments! Here's what JSON.NET has to say about them:"
- argv
- |> Array.map getJsonNetJson
- |> Array.iter (printfn "%s")
- 0 // return an integer exit code
- ➜ src cat Library/Library.fs
- module Library
- open Newtonsoft.Json
- let getJsonNetJson value =
- sprintf "I used to be %s but now I'm %s thanks to JSON.NET!" value (JsonConvert.SerializeObject(value))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement