jsonapi-converter icon indicating copy to clipboard operation
jsonapi-converter copied to clipboard

Get value above "attributes" level

Open Michigras opened this issue 2 years ago • 1 comments

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).

Michigras avatar Mar 11 '22 12:03 Michigras

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 avatar Mar 11 '22 12:03 jasminb

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

jasminb avatar Aug 17 '23 11:08 jasminb