Added debugging output to shell json export