Hi! I'm looking into the new <JsonArrayAddHelper> ...
# help
b
Hi! I'm looking into the new JsonArrayAddHelper class that has a
maxItems
hash option, and I'm not sure if I get its purpose right. Based on its unit tests what I see is that: • it takes the input array with the added element(s) • and it keeps the last n elements of that combined array, n being the number in maxItems Do I get it right?
l
Yes, I think that is correct.
Makes me realise that for some reason we haven't documented the
maxItems
and
flatten
parameters to that helper.
b
Sounds good, thank you.
Yeah, and I think the
jsonPath
option is not documented either.
🙏 1
l
Ah, thanks for letting me know. I'll go through all the new helpers that were added in
3.10.0
and make sure they are all documented. 👍
b
Awesome, thanks.