Netflix / fast_jsonapi

No Longer Maintained - A lightning fast JSON:API serializer for Ruby Objects.
Apache License 2.0
5.07k stars 425 forks source link

Remove the meta root key #445

Open TasnimMehzabin opened 4 years ago

TasnimMehzabin commented 4 years ago

Is there any option to show only the content of meta without showing the "meta" key? Currently if we pass meta data, it shows as follows:

{ "data": null, "meta": { "success": true } }

Is there any way to show it like: { "data": null, "success": true }

doits commented 4 years ago

I think this is not possible because it is not JSON:API conformant.

You can always amend the serializable hash yourself afterwards though.