The grep-based JSON parsing was fragile and broke on nested arrays
(like Location inside Directory). Using jq properly handles the
JSON structure.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The EOF marker was on the same line as the library_metrics variable,
causing the heredoc to not close properly.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>