-Fixed serializing non-zero based multidimensional array
This commit is contained in:
@@ -667,7 +667,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
|
||||
writer.WriteStartArray();
|
||||
|
||||
for (int i = 0; i < values.GetLength(dimension); i++)
|
||||
for (int i = values.GetLowerBound(dimension); i <= values.GetUpperBound(dimension); i++)
|
||||
{
|
||||
newIndices[dimension] = i;
|
||||
bool isTopLevel = (newIndices.Length == values.Rank);
|
||||
|
||||
Reference in New Issue
Block a user