thoth-org / Thoth.Json

Library for working with JSON in a type safe manner, this libs is targeting Fable

Home Page:https://thoth-org.github.io/Thoth.Json/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thoth.Json's Code Sample does not compile

kurt-mueller-osumc opened this issue · comments

Thoth's Code Sample won't compile.

The compiler throws several errors:

Thoth.Json.Net is not defined.

and

The type 'Decoder' is not defined in 'Thoth.Json.Decode'.

Screen Shot 2021-02-05 at 10 13 48 AM

Screen Shot 2021-02-05 at 10 15 18 AM

Turns out I needed to add the Thoth.Json.Net nuget package in order to open Thoth.Json.Net. facepalm I will say, however, that the Thoth.Json.Net nuget package is not mentioned anywhere in the documentation page: https://thoth-org.github.io/Thoth.Json/index.html

However, Decode.Decoder still throws a compiler error as well as the object attribute whitespace alignment. I've opened up a pull request here and here.

Hello @kurt-mueller-osumc Thoth.Json.Net is mentioned in the section .Net & NetCore support

https://thoth-org.github.io/Thoth.Json/index.html#.Net-and-NetCore-support

Thank you for the PR I will take a look.

... not that it's a separate package 😬. I honestly thought I was just opening another namespace/module.

Anyway, I've been using Thoth.Json for about 4 hours now and I really like it. Thank you for the great software and for all your hard work.

... not that it's a separate package grimacing.

For me it does, but perhaps there is place for improvement.

In order to use Thoth.Json API on .Net or NetCore you need to use the Thoth.Json.Net package.

Anyway, I've been using Thoth.Json for about 4 hours now and I really like it. Thank you for the great software and for all your hard work.

Thank you for the kind word and happy that you find it useful :)

I updated the documentation thank you for the PR