# Is it allowed to have an attribute called "links" inside "attributes"?

**URL:** <https://discuss.jsonapi.org/t/is-it-allowed-to-have-an-attribute-called-links-inside-attributes/1193>\
**Category:** Uncategorized\
**Created:** [January 25, 2018, 4:59pm UTC](https://discuss.jsonapi.org/t/is-it-allowed-to-have-an-attribute-called-links-inside-attributes/1193 "2018-01-25T16:59:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buju](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/buju/32/321_2.png) [@Buju](https://discuss.jsonapi.org/u/Buju)\
**Post date:** [January 25, 2018, 4:59pm UTC](https://discuss.jsonapi.org/t/is-it-allowed-to-have-an-attribute-called-links-inside-attributes/1193/1 "2018-01-25T16:59:15Z")

</div>

or is it only disallowed when it is inside a complex attribute?

example, is this allowed?

```
{
  "data": {
    "type": "articles",
    "id": "1",
    "attributes": {
      "title": "JSON API paints my bikeshed!",
      "links": {
        ... some custom stuff
      }
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![dgeb](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/dgeb/32/17_2.png) [@dgeb](https://discuss.jsonapi.org/u/dgeb)\
**Post date:** [January 25, 2018, 5:40pm UTC](https://discuss.jsonapi.org/t/is-it-allowed-to-have-an-attribute-called-links-inside-attributes/1193/2 "2018-01-25T17:40:36Z")

</div>

Yes, that would be allowed, although perhaps a little confusing.

---

<div class="post-metadata">

**Author:** ![Buju](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/buju/32/321_2.png) [@Buju](https://discuss.jsonapi.org/u/Buju)\
**Post date:** [January 25, 2018, 5:42pm UTC](https://discuss.jsonapi.org/t/is-it-allowed-to-have-an-attribute-called-links-inside-attributes/1193/3 "2018-01-25T17:42:40Z")

</div>

thx for the quick reply. yes, I also agree that would be a bit confusing. we might rethink the naming of that attribute.
