JsonSerializationException after editing config

ailed to call hook 'OnServerInitialized' on plugin 'RaidableBases v2.4.1' (JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Oxide.Plugins.RaidableBases+TreasureItem' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.

To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.

Path '[0]', line 1, position 2.)

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00058] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x00012] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (System.Collections.IList list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x0016f] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x000dc] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <2ae3f091decd4989b3c4d466e6eb5985>:0

at Oxide.Core.Configuration.DynamicConfigFile.ReadObject[T] (System.String filename) [0x00028] in <12678b905a6d43c3a9cc366104306651>:0

at Oxide.Core.DataFileSystem.ReadObject[T] (System.String name) [0x00021] in <12678b905a6d43c3a9cc366104306651>:0

at Oxide.Plugins.RaidableBases.GetTable (System.String file) [0x00010] in <843f10507d704181ac2722470ed31373>:0

at Oxide.Plugins.RaidableBases.LoadTables () [0x000eb] in <843f10507d704181ac2722470ed31373>:0

at Oxide.Plugins.RaidableBases.Initialize () [0x0001e] in <843f10507d704181ac2722470ed31373>:0

at Oxide.Plugins.RaidableBases.OnServerInitialized (System.Boolean isStartup) [0x00046] in <843f10507d704181ac2722470ed31373>:0

at Oxide.Plugins.RaidableBases.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01825] in <843f10507d704181ac2722470ed31373>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <12678b905a6d43c3a9cc366104306651>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <12678b905a6d43c3a9cc366104306651>:0

(23:57:14) | Loaded plugin Raidable Bases v2.4.1 by nivex

you have a broken loot table. so that means whatever file you edited has a bad json format and needs to be fixed. either this, or you put a profile or some other file in a loot table directory and it shouldn't be put there

all i did was putting that edibal loot, in to base loot

  1. he said in his video that he had to put in diddicult loot and not base loot
    so i copy that Editable list in to difficulty loot


Merged post

when im done with a base, it won't let me get in to a new one?

the error is telling you what the issue is, and how to correct it. you either have a file in the wrong directory (with the same name as a loot table), or a loot table file with a json error. figure out which it is and you can fix it np. delete if former, or use a json validator if the latter

thats in the config under lockouts... please read the documentation.