feat[report]: adds `to_json()` method

Merged Pierre Camilleri requested to merge report_refacto into main

Adds the to_json() method to Report.

Also, this lead to some refactorings, removing the need for jsonschema.Errors for creating a Report object. Creation from errors uses now the from_errors method.

Edited by Pierre Camilleri

Merge request reports