Correct JsonDoc modify behavior for removing array elements