Ejemplo n.º 1
0
        // Token: 0x06001128 RID: 4392 RVA: 0x00055AEC File Offset: 0x00053CEC
        public static void PopulateObject(string value, object target, Class_380 settings)
        {
            Class_418 class_ = Class_418.tmethod_3162(settings);

            using (Class_285 class_2 = new Class_409(new StringReader(value)))
            {
                class_.vmethod_3165(class_2, target);
                if (class_2.vmethod_1885() && class_2.prop_9 != Class_508.Comment)
                {
                    throw new Class_417("Additional text found in JSON string after finishing deserializing object.");
                }
            }
        }
Ejemplo n.º 2
0
        // Token: 0x0600129A RID: 4762 RVA: 0x00059D34 File Offset: 0x00057F34
        public static Class_424 tmethod_3352(string str_0)
        {
            Class_424 result;

            using (Class_285 class_ = new Class_409(new StringReader(str_0)))
            {
                Class_424 class_2 = Class_424.xmethod_3351(class_);
                if (class_.vmethod_1885() && class_.prop_9 != Class_508.Comment)
                {
                    throw Class_414.lmethod_3098(class_, "Additional text found in JSON string after parsing content.");
                }
                result = class_2;
            }
            return(result);
        }