make prettyfied JSON optionnal on stat too