Make JSON formatter behave the same as text formatter

When it comes to `--profile` and `--fail-fast`.