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

Return an object instead of a string when format is json #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

noinkling
Copy link

@noinkling noinkling commented Jun 4, 2016

Currently the data is returned as a string, generally people want this to be an object when the response format is JSON (which it is by default).

If users do in fact want a string, they can just do a JSON.stringify(), or if #10 was accepted they could access response.body.

Breaking change so would need a minor version bump if accepted.

@noinkling noinkling changed the title Return an object instead of a string when format = json Return an object instead of a string when format is json Jun 4, 2016
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

Successfully merging this pull request may close these issues.

1 participant