Allow for latest PHP JASON_* constants.

If a config 'dispatch.json' is set, then the value is assumed to be the JSON output preference.

Setting config('dispatch.json', JSON_PRETTY_PRINT||JSON_OBJECT_AS_ARRAY) would generate the expected formatting as output.