question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for IJsonDocument ser/deser (FSharp.Data)

See original GitHub issue
One or more errors occurred. (Deserialization of interface types is not supported. Type 'FSharp.Data.Runtime.BaseTypes.IJsonDocument'. Path: $ | LineNumber: 0 | BytePositionInLine: 1.)

JsonProvider from FSharp.Data needs this type if it’s used to build shared DTOs between client and server.

is it possible to support this specific interface type serialization/deserialization ?

would be handy

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Tarmilcommented, Nov 16, 2021

Yes, in fact this is something that would be useful for all System.Text.Json users, not just Bolero. A library FSharp.Data.SystemTextJson that provides a System.Text.Json converter for JsonValue would be the way to go I think.

0reactions
jkone27commented, Nov 15, 2021

Ah yes true you are right, could be a separate assembly/library. To avoid lock in dependency

Read more comments on GitHub >

github_iconTop Results From Across the Web

JsonDocument (FSharp.Data)
JsonDocument Type. Namespace: FSharp.Data.Runtime.BaseTypes; Assembly: FSharp.Data.Json.Core.dll ... Returns: IJsonDocument. JsonDocument.Create(value, path).
Read more >
FSharp.Data: Data Access Made Simple
The FSharp.Data package implements core functionality to access common data formats in your F# applications and scripts. It contains F# type providers for ......
Read more >
JSON Type Provider
JSON Type Provider. This article demonstrates how to use the JSON Type Provider to access JSON files in a statically typed way.
Read more >
IJsonDocument (FSharp.Data)
IJsonDocument Type. Namespace: FSharp.Data.Runtime.BaseTypes; Assembly: FSharp.Data.Json.Core.dll; Base Type: obj; All Interfaces: IJsonDocument ...
Read more >
internal error: Could not load type 'FSharp.Data.Runtime. ...
I did a nuget restore and now I am getting this exception: error FS0193: internal error: Could not load type 'FSharp.Data.Runtime.IJsonDocument' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found