internal static PSB Parse(string json, ushort version) { PSB psb = new PSB(version) { Objects = JsonConvert.DeserializeObject <PsbDictionary>(json, new PsbJsonConverter()) }; psb.Type = psb.InferType(); return(psb); }
internal static PSB Parse(string json, ushort version) { PSB psb = new PSB(version) { Objects = JsonConvert.DeserializeObject <PsbDictionary>(json, new PsbJsonConverter()) }; psb.InferType(); psb.Collect(false, false); //don't merge res since it's empty now return(psb); }