JSONPath Slice

Slice uses [start:end] to select a range.

Syntax

$.store.book[0:2].title

Explanation

Use [0:2] to select the first two items of an array.