# Data

The Data Trait is being used in Query, Files and Body classes to provide unified get and data methods. Especially the get method is a bit more complex with the option to fetch single keys or entire arrays.

****

- Full class name: `Kirby\Http\Request\Data`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Http/Request/Data.php#L19>

****

### Data

- [$data->__debugInfo()](https://getkirby.com/docs/reference/objects/http-request/data/__debug-info.md)
- [$data->data()](https://getkirby.com/docs/reference/objects/http-request/data/data.md)
- [$data->get()](https://getkirby.com/docs/reference/objects/http-request/data/get.md)
- [$data->toArray()](https://getkirby.com/docs/reference/objects/http-request/data/to-array.md)
- [$data->toJson()](https://getkirby.com/docs/reference/objects/http-request/data/to-json.md)