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


#1

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
      }
    }
  }
}

#2

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


#3

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