Json2Fs.Core 0.0.1

dotnet add package Json2Fs.Core --version 0.0.1                
NuGet\Install-Package Json2Fs.Core -Version 0.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Json2Fs.Core" Version="0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Json2Fs.Core --version 0.0.1                
#r "nuget: Json2Fs.Core, 0.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Json2Fs.Core as a Cake Addin
#addin nuget:?package=Json2Fs.Core&version=0.0.1

// Install Json2Fs.Core as a Cake Tool
#tool nuget:?package=Json2Fs.Core&version=0.0.1                

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
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.1 211 2/8/2022