JSON deserialization with Stack structure reverses order [duplicate]
问题 This question already has answers here : JsonConvert.Deserializer indexing issues (4 answers) Closed 4 years ago . Using the NewtonSoft JSO serializer and a stack data structure. The order is reversed when I deserialize the structure. Comparing numbers and ss. Am I doing something wrong here or is there any workaround the issue. using Newtonsoft.Json; using System; using System.Collections.Generic; class Example { public static void Main() { Stack<string> numbers = new Stack<string>();