Write indexed packungen JSON

Still WIP:
- Only the first packung is indexed
- Index should not contain duplicates
fix