interactive
interactive copied to clipboard
TabularDataResource cannot be deserialized from JSON
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);
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)
Let's walk through a clearer repro and discuss the context in which this is needed.