You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I just discovered Falco and it looks pretty neat! I'll try to give it a run on the following days
I just have a question about JSON serialization/deserialization I saw that you are using the System.Text.Json API's
I believe I tried those previously in another project but ran into exceptions once I tried to deserialize option types as well as Discriminated Unions, with that in mind
Thank you very much for reaching out! I knew this topic would come up at some point and I should likely express my views in JSON more clearly in the documentation.
I included the jsonOut method as a convenience function for those times you need "quick and dirty" JSON output.
I explicitly chose not to include any meaningful JSON handlers or functionality beyond this because there isn't really a commonly accepted way of doing it. Thus, I figured it would be easiest to let people roll their own.
That said, if people were open to a dependency and could agree on a package. I would be more than happy to add full JSON support.
For the time being Ill update that documentation with a section on JSON to reflect my views on the subject.
I explicitly chose not to include any meaningful JSON handlers or functionality beyond this because there isn't really a commonly accepted way of doing it. Thus, I figured it would be easiest to let people roll their own.
Hey, I just discovered Falco and it looks pretty neat! I'll try to give it a run on the following days
I just have a question about JSON serialization/deserialization I saw that you are using the System.Text.Json API's
I believe I tried those previously in another project but ran into exceptions once I tried to deserialize option types as well as Discriminated Unions, with that in mind
Is it safe to just deserialize json?
if not, you might want to consider taking a look at
https://github.com/Tarmil/FSharp.SystemTextJson
which uses the same API's but with some F# sugar for those mentioned types
The text was updated successfully, but these errors were encountered: