interactive icon indicating copy to clipboard operation
interactive copied to clipboard

TabularDataResource cannot be deserialized from JSON

Open colombod opened this issue 4 years ago • 1 comments

Describe the bug


using System.Text.Json;
using Microsoft.DotNet.Interactive.Formatting.TabularData;

var table = sortedMergeGdp.ToTabularDataResource();
var text = JsonSerializer.Serialize(table, TabularDataResourceFormatter.JsonSerializerOptions);

var deserialized = JsonSerializer.Deserialize<TabularDataResource>(text, TabularDataResourceFormatter.JsonSerializerOptions);

image

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

  • OS
    • [ ] Windows 11
    • [ ] Windows 10
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [ ] Chrome
    • [ ] Edge
    • [ ] Firefox
    • [ ] Safari
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [x] Visual Studio Code
    • [x] Visual Studio Code Insiders
    • [x] Visual Studio
    • [ ] Other (please specify)

colombod avatar Feb 28 '22 17:02 colombod

Let's walk through a clearer repro and discuss the context in which this is needed.

jonsequitur avatar Apr 12 '22 17:04 jonsequitur