json function will use Pygments if it's installed