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

JSON.stringify body when json: true #15

Open
dareid opened this issue Aug 22, 2016 · 0 comments
Open

JSON.stringify body when json: true #15

dareid opened this issue Aug 22, 2016 · 0 comments

Comments

@dareid
Copy link

dareid commented Aug 22, 2016

Thanks for the great library. I am using it as part of dareid/chakram.

We have noticed that when using the default logging, when the request has json set to true, the response body will just output body: { data: [Object] }.

Looking at your code, it seems like you do not assume anything about the body format, which makes sense. But when json is set to true, if I am correct, you know that the response body will be a JSON object.

Would it be possible to JSON.stringify in this situation?

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

1 participant