The following syntax worked for me: @second = {{getall.response.body.$[1].id}}
@second = {{getall.response.body.$[1].id}}
I needed to search the array with $[index-of-object].json_property
$[index-of-object].json_property