> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# attributes

Retrieves all attributes of the element as a JSON object.
Each key in the object is an attribute name, and its value is the attribute's string value.
Example: `{ "id": "myElement", "class": "active important", "data-value": "123" }`

## Definition

```graphql theme={null}
attributes: JSONObject
```

## Returns

[JSONObject](/reference/graphql/scalars/jsonobject)

The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).

## Usage

This field is available on the [Page](/reference/graphql/objects/page) object. Use it to query page information and content.
