Beispiel #1
0
        /// <summary>
        /// Deserializer.
        /// Restores a previous state of an object from the JSON string {@code string}.
        /// </summary>
        /// <param name="string"> the string representation of the JSON containing the saved state of an object. </param>
        /// <returns> an object whose attributes were stored in the JSON {@code string}. </returns>

        public static object FromJson(string @string)
        {
            ObjectParser.InitObjectMap();
            var parsedObject = ObjectParser.FromJson(@string);

            ObjectParser.ClearObjectMap();
            return(parsedObject);
        }