RicoSuter / VisualJsonEditor

A JSON schema based file editor for Windows.
http://visualjsoneditor.org
MIT License
349 stars 87 forks source link

InvalidCastException #38

Open REALmyenemy opened 3 years ago

REALmyenemy commented 3 years ago

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()