Decoding Json in F# and Fable with Thoth.Json

preview_player
Показать описание

How does Json Decoding work in Fable (and also in Elm) applications. After watching this short stream snippet you will have everything that is needed to start decoding your Json in a type safe way.

Github Repository:

Twitter:
@r0mmsen
@zaid_ajaj
Рекомендации по теме
Комментарии
Автор

Hello, Maxime here,

that's a great introduction to Thoth.Json :)

To answer your question from the stream.

When using the "Decode.object" decoder, the convention is to call the function argument "get". Also, when using the getter if you want to access a direct field you can do "get.Required.Field "my-field" Decode.int" and then read it as "I have to get the required field "my-field" which is of type int".

mmangel
Автор

You guy's should do a blog or video of your most loved f# librarys. I mean the only thing I knew that existed is the json type provider. Which is ofc nice for what it is but not as flexible Thoth. Your doing really valuable content and I appreciate it a lot! Thx 👍👍

marcobuess
Автор

*searches google for maxime*
OMG why is he so hot

He looks like a more handsome version of Michael Fassbender

RenatoFontes
visit shbcf.ru