-
Feature Request
-
Resolution: Fixed
-
L3 - Default
-
None
AT:
- I can append to the end of a list
SpinJsonObject o = JSON("
{\"a\": [ ] }");
o.prop(a)
.append("1")
.append(JSON("
"))
=>> { a: [ 1,
{...}] }
- I can insert at a specific position:
SpinJsonObject o = JSON("
{\"a\": [1, 2 ] }");
o.prop("a").insertAt(1, "3") =>
o.prop("a").insertAt(-1, "3") =>
{ a: [1,2,3] }- I can insert after/before a specific value:
SpinJsonObject o = JSON("
{\"a\": [1, 2 ] }");
o.prop("a").insertAfter(1, "3") =>
o.prop("a").insertBefore(1, "3") =>
{ a: [3,1,2] }- I can use equivalent remove() methods