Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the meta root key #445

Open
TasnimMehzabin opened this issue Oct 21, 2019 · 1 comment
Open

Remove the meta root key #445

TasnimMehzabin opened this issue Oct 21, 2019 · 1 comment

Comments

@TasnimMehzabin
Copy link

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
Copy link

doits commented Dec 26, 2019

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

You can always amend the serializable hash yourself afterwards though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants