We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 591a29d commit fe14563Copy full SHA for fe14563
QsNet.Tests/DecodeTests.cs
@@ -4765,4 +4765,22 @@ public void Decode_CommaSplit_ThrowsWhenSumExceedsLimitAndThrowOn()
4765
}
4766
4767
#endregion
4768
+
4769
+ #region Nested brackets
4770
4771
+ [Fact]
4772
+ public void NestedBrackets_AreParsedCorrectly()
4773
+ {
4774
+ Qs.Decode("a[b[]]=c", new DecodeOptions())
4775
+ .Should().BeEquivalentTo(
4776
+ new Dictionary<string, object?>
4777
4778
+ ["a"] = new Dictionary<string, object?>
4779
4780
+ ["b[]"] = "c"
4781
+ }
4782
+ });
4783
4784
4785
+ #endregion
4786
0 commit comments