update parser logic for gnerating pretty json outputs for humans