views:

87

answers:

1

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

Edit: The library currently being used is .NET 3.5's System.Runtime.Serialization.Json.DataContractJsonSerializer

A: 

I would say it depends on implementation of your library of choice for the task. I your library documentation does not say anything on the matter, I would assume that it is implementation details and can not be trusted(can be changed in next version).

Alex Reitbort