

GitHub - WhiteBlackGoose/json2fs: Tool which converts json from file into F# rec...
source link: https://github.com/WhiteBlackGoose/json2fs
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

json2fs
Tool which converts json from file into F# records. There's also library Json2Fs.Core. Both can be found on nuget.org.
Usage of Json2Fs
Get it from nuget:
dotnet tool install json2fs --global --prerelease
Run it like this:
json2fs WebsiteResponse your/path/to.json dst.fs
Where WebsiteResponse
is the name of the root record (the one you will be deserializing into).
Usage of Json2Fs.Core
open Json2Fs.Core let json = ... // string let jsonElement = JsonSerializer.Deserialize<JsonElement> json let dtos = generateFSharpDTOsByJson typename jsonElement // a list of records let ``F# code`` = fsRecordsToString dtos // this converts it to the actual code
Recommend
-
148
README.md
-
58
README.rst WeasyPrint
-
100
README.md Ashton
-
10
re-txt reformates a text file from a structure to another, i.e: convert from json to yaml, toml to json, ... etc Supported Source Formats Supported Target Formats Examples
-
12
λ calculus in F# Library for lambda calculus made purely in and for F# The λ-calculus is, at heart, a simple notation for functions and application. The main ideas are applying a functio...
-
12
More FuncUI This is some collection of FuncUI components I maintain. MoreFuncUI.WebView It's a wrapper of awesome WebView. Example of code: WebV...
-
3
Asm To Delegate Compile asm code into C# functions on fly! For now supports only x86 Windows 64-bit. Get started Get the lib (it's probably distributed by nuget) and it's recommended to write these usings:
-
9
CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
-
8
mine-city-2000 MineCity 2000 is a program that converts SimCity 2000 cities into Minecraft (Java Edition) worlds From this:
-
4
Question Is it possible top use Oppo/Realme Flash Tool converts GT Neo FE to x7 Max? ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK