Adds support for query paging in JSON based query language.
Adds unit test to ensure test coverage.