I'm trying to exclude a json attribute from being trimmed by Laravel middleware `TrimStrings`, but it seems impossible. 

The data I'm posting:

```
{
    data1: { name: "pong " },
    data2: "pang ",
}

```

In `TrimStrings` middleware I have added these attributes to excluded array:

```
protected $except = [
    'password',
    'password_confirmation',
    'data1',
    'data2',
];

```

After middleware has ran I get:

```
$request->data1; // [ name => "pong" ]
$request->data2; // "pang "

```

The `data2` is not trimmed as expected. 
But I don't know why it trims the `data1`. I really want to keep the space. 

The only way I found that keeps it from trimming is removing `TrimStrings` middleware from `kernel.php`. But it would be nice to keep `TrimStrings`.