jasminb / jsonapi-converter

JSONAPI-Converter is a Java/Android library that provides support for working with JSONAPI spec
Apache License 2.0
272 stars 81 forks source link

Get value above "attributes" level #253

Closed Michigras closed 10 months ago

Michigras commented 2 years ago

Hi,

I've got JSON data which looks like this (excerpt):

"arbitrary": { "data": { "type": "arbitrary", "id": "28", "name": "Some Text" } }

Is it possible to get access to the name attribute? I suppose it's an error and name should be included inside an attributes object (as they correctly did in other parts of the JSON code).

jasminb commented 2 years ago

Hey there @Michigras,

Yes, name should be inside attributes.

You could fork and do some changes to be able to access the attribute, but IMHO the API should be fixed to be compliant with the spec.

jasminb commented 10 months ago

Closing as its asking about features not compatible with the spec.