adding --json prototype solution