initial scm->json implementation