feat(jsonFilter): add optional arg to define custom indentation

Not sure if VMs make such optimizations anyway, but (if not) you can skip unnecessary execution of the first if, by reordering liek this:

    if (pretty === true) {
        pretty = 2;
    } else if (!isNumber(pretty)) {
        pretty = !!pretty;
    }