Hi Nensi,
the SHACL validation produces an RDF graph which we represent programmatically as a Jena Graph object (or Model). When you use the command line tool that graph would be serialised as Turtle. One way to turn such output into JSON would be re-save the Graph into JSON-LD format using the Jena API. However, the output may not be in the exact format that you’d like. An alternative is to run a SPARQL SELECT query over the result and use the SPARQL result format as output. Basically write a query that fetches the sh:focusNode, the sh:value and sh:sourceConstraintComponent of each validation result.
Not sure if this helps as I am not sure what experience you have, e.g. whether you rely on the command line of can write Java programs.
Holger