Add canonical json debugging if PRINT_CANONICAL_JSON=true