Display of Newtonsoft.Json.Linq.JObject
throws TargetInvocationException exception
#2877
Open
1 of 16 tasks
Labels
Area-Formatting
Data and object formatting as HTML and plaintext
bug
Something isn't working
Impact-Medium
The bug
Display of
Newtonsoft.Json.Linq.JObject
throws TargetInvocationException exceptionI am trying to execute the following
And I get
Despite the success of System.Text.Json Newtonsoft is still popular, and it is very common to deal with Newtonsoft objects in interactive.
Workaround
For a moment I use the following workaround
It works, but I believe that Newtonsoft should be supported out of the box. (Also it took some time for me to come to this solution, I guess other folks also could have some trouble with this)
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the
#!about
magic command. ):.NET Interactive
© 2020 Microsoft Corporation
Version: 1.0.416502+d1b731772b784b6bb4257dc8d8496d1ab938e534
Library version: 1.0.0-beta.23165.2+d1b731772b784b6bb4257dc8d8496d1ab938e534
Build date: 2023-03-19T08:25:03.2539902Z
https://github.com/dotnet/interactive
Screenshots
The text was updated successfully, but these errors were encountered: