Skip to content

InvalidCastException #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
REALmyenemy opened this issue May 20, 2021 · 0 comments
Open

InvalidCastException #38

REALmyenemy opened this issue May 20, 2021 · 0 comments

Comments

@REALmyenemy
Copy link

Every single actually not sampleish json I open reports this:

System.InvalidCastException: Cannot convert 'Newtonsoft.Json.Linq.JArray' to 'Newtonsoft.Json.Linq.JObject'.
at VisualJsonEditor.Models.JsonObjectModel.GetSchemaProperty(String filePath) at C:\projects\visualjsoneditor\src\VisualJsonEditor\Models\JsonObjectModel.cs:line 75
at VisualJsonEditor.ViewModels.MainWindowModel.<>c__DisplayClass59_0.<b__1>d.MoveNext() at C:\projects\visualjsoneditor\src\VisualJsonEditor\ViewModels\MainWindowModel.cs:line191

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MyToolkit.Mvvm.ViewModelBase.<>c__DisplayClass13_0.<b__0>d.MoveNext()

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MyToolkit.Mvvm.ViewModelBase.d__12`1.MoveNext()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant