change command line parser modul in diag and handle json objects in log variable