Cleaned up JSON format for stacks and commands