> For the complete documentation index, see [llms.txt](https://matanya.gitbook.io/vue-tables-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matanya.gitbook.io/vue-tables-2/nested-data-structures.md).

# Nested Data Structures

Oftentimes your dataset will consist of *objects*, rather than primitive types.

By default, the package has no knowledge of how those objects should be presented.

To tell the package how to handle those fields you can use one of two options, depending on your needs:

1\. Decide which *primitive* property you would like to refer to as the relevant piece of data, by using the dot notation when declaring your \`columns\` prop. E.g: `['name','age','meta.education.degree']`

2\. Use [Templates](/vue-tables-2/templates.md)

Option 1 is more simple and straight-forward. However, it disregards all the other properties, which means that sorting, filtering and presentation will all refer to the single piece of primitive data at the "end of the chain".

If you want to use the entire object, option 2 is your best route. This will allow you to incorporate all the properties in the presentation.&#x20;

{% hint style="info" %}
When using the client component note that:

* Default filtering behaviour will recursively scan the entire object for the query.
* If the column is sortable, you will need to define a sorting algorithm, using the [customSorting](/vue-tables-2/custom-sorting.md) option.
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://matanya.gitbook.io/vue-tables-2/nested-data-structures.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
