This introduces a new class Ansi2json which similarly to Ansi2html converts job logs to a format that can be parsed by frontend.