> For the complete documentation index, see [llms.txt](https://upsolver.gitbook.io/content/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://upsolver.gitbook.io/content/reference-1/functions-and-operators/functions/structural.md).

# Structural

This section describes the following structural functions:

<table><thead><tr><th width="271">Function</th><th>Description</th></tr></thead><tbody><tr><td><a href="/pages/GyHCk7hyw0p0CCPeiSH8">FROM_KEY_VALUE</a></td><td>Maps a list of key values to a record with fields for each key</td></tr><tr><td><a href="/pages/lfyHL7aqpWjnTs8OwsVh">GET_RANGE</a></td><td>Returns a range of numbers between start and end (inclusive)</td></tr><tr><td><a href="/pages/YKbxSUlopizia52rLvCp">JOIN_ALL_BY_KEY</a></td><td>Combines multiple key-value arrays into one by the keys</td></tr><tr><td><a href="/pages/4XflVZFlA99zGBSp5xzS">JSON_PATH</a></td><td>Extracts data from JSON objects</td></tr><tr><td><a href="/pages/qo7lrUw3zpcvCyv9W3eq">JSON_TO_RECORD</a></td><td>Extracts data from JSON objects</td></tr><tr><td><a href="/pages/3vgJU79KbsUMuAqVjN3W">MAP_WITH_INDEX</a></td><td>Outputs an index and a value field. The index contains a zero-based index, and the value contains the value in the input field</td></tr><tr><td><a href="/pages/wzIL2MmOrUEmjLSHpWTl">QUERY_STRING_TO_RECORD</a></td><td>Extracts data from a query string</td></tr><tr><td><a href="/pages/XL2kADHoWDKG3ScmQfTa">RECORD_TO_JSON</a></td><td>Converts the record containing the field to a JSON string</td></tr><tr><td><a href="/pages/zlqqMp4RpYTB56vPMiLD">SORT_BY</a></td><td>Sorts the values array by the sortKeys array</td></tr><tr><td><a href="/pages/O5Hqjua8kbkVmsdWdTpS">TO_ARRAY</a></td><td>Outputs all the values from all the inputs as an array</td></tr><tr><td><a href="/pages/27C5nj9P6CYFeUu8cqiK">ZIP</a></td><td>Combines multiple arrays by index into records</td></tr><tr><td><a href="/pages/dmHSV3SeaNdRl2I0gWzW">ZIP_WITH_INDEX</a></td><td>Combines multiple arrays by index into records</td></tr></tbody></table>


---

# 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://upsolver.gitbook.io/content/reference-1/functions-and-operators/functions/structural.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.
