示例#1
0
        internal static object BasicDeserialize(string input, int depthLimit, JSerializer serializer)
        {
            JObjectDeserializer jsod = new JObjectDeserializer(input, depthLimit, serializer);
            object result            = jsod.DeserializeInternal(0);

            if (jsod._s.GetNextNonEmptyChar() != null)
            {
                throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, AtlasWeb.JSON_IllegalPrimitive, jsod._s.ToString()));
            }
            return(result);
        }