https://github.com/goswinr/jino
A JSON parser and generator for F# on .NET and JS via Fable. Based on FSharp.Data
https://github.com/goswinr/jino
fable fsharp generator json parser
Last synced: about 1 month ago
JSON representation
A JSON parser and generator for F# on .NET and JS via Fable. Based on FSharp.Data
- Host: GitHub
- URL: https://github.com/goswinr/jino
- Owner: goswinr
- License: apache-2.0
- Created: 2023-03-18T01:11:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-18T01:13:44.000Z (over 3 years ago)
- Last Synced: 2025-01-08T19:51:10.924Z (over 1 year ago)
- Topics: fable, fsharp, generator, json, parser
- Language: F#
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jino
[](https://www.nuget.org/packages/Jino/)
[](https://www.fuget.org/packages/Jino)

[](LICENSE)

Jino is a JSON parser and generator for F# on .NET and [Fable](https://fable.io/https://fable.io/).
The code and the tests are extracted and adapted from the much larger [FSharp.Data](https://github.com/fsprojects/FSharp.Data) library.
While there are many JSON libraries around, I haven't found one that runs on both .NET and [Fable](https://fable.io/). So I made this one by just copying the relevant part from [FSharp.Data](https://github.com/fsprojects/FSharp.Data)
### Usage
##### Parsing
```fsharp
open Jino
let jValue = JsonValue.Parse(jsonAsString)
```
##### Generating
```fsharp
open Jino
let jValue =
JsonValue.Record [|
"theAnswer", JsonValue.Number 42.0
"canBeFound", JsonValue.Bool true
|]
jValue.ToFormattedString() // get a JSON string
```
### Documentation
For now see [full API documentation on fuget.org](https://www.fuget.org/packages/Jino)
### License
[MIT](https://raw.githubusercontent.com/goswinr/Jino/main/LICENSE.txt)
### Release Notes
`1.0.0`
- first public release