Convert array to object (index_by) jq

Build an object keyed by the id field

jq 'INDEX(.[]; .id)' items.json
#jq