The Data Factory REST connector will stop once "any of the JSONPath expressions in "paginationRules" returns null". I hope the above expression qualifies, but I cannot test it myself.
@vbrech Thanks for the response. I tried using the value provided by you, but it only returns 1 page. When I used a vid-offset value that is very large it did indeed stop returning values unlike before, which it just starts from vid-offset=0 again. So I believe we are on the right track.
returns [10] while $.vid-offset returns 10. I think Data Factory only accept integers instead of array. I will play around to see if I can convert the [10] into 10.