Add function to parse analysis complete notification JSON
This function makes it easier for downstream consumers (like package analysis) to parse the package analysis complete notification and identify the package being analysed.
Signed-off-by: Ada Luong [email protected]
Is this still required?
@calebbrown do we need this code?
Long term - yes, I think this is the right place for this. Marshal/Unmarshal logic best exists next to the struct itself (e.g. url.Parse).
In this particularly case I am planning a small refactor in https://github.com/ossf/package-analysis/issues/651. So it's not critical to have this merged. Given the lack of unit tests we probably want to wait.