Is JSON array deserialization an order of elements that are always saved?

When deserializing a JSON array in C # /. NET, is the order of the elements always maintained?

Edit: The library that is currently in use is the .NET 3.5 System.Runtime.Serialization.Json.DataContractJsonSerializer

+3
source share
2 answers

Yes.

The JSON specification indicates that the order is preserved for arrays as they are an ordered set of values: JSON.org

+3
source

, . , , ( ).

0

Source: https://habr.com/ru/post/1764778/


All Articles