de-jcup/sarif-java

Make a short example, how to use the library

Closed this issue · 0 comments

Situation

Currently the usage part inside README.md does only show how it can be integrated with gradle.

Wanted

Add a simple snippet to show how to use it and make it visible inside README.md.

The example should show

  1. how to read an existing SARIF 2.1.0 report into an SarifSchema210 object (with jackson)
  2. how to create a SARIF 2.1.0 report via a new SarifSchema210 + how to serialize it (with jackson)