Skip to content
New issue

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

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

Already on GitHub? # to your account

Add JSONIndent method #22

Merged
merged 1 commit into from
Apr 28, 2016
Merged

Conversation

bentranter
Copy link
Contributor

I've been (slowly) working on https://github.com/dinever/dingo/issues/6, and noticed that the output of ctx.JSON wasn't very human-readable, since it just uses json.MarshalIndent. I really like the way GitHub has a sort of self-documenting API, and has easy-to-read JSON output, since it is formatted nicely. This PR adds support for the json.MarshalIndent method inside ctx, so that users can choose how to format their JSON output.

@dinever dinever merged commit 8c0be55 into dinever:master Apr 28, 2016
@dinever
Copy link
Owner

dinever commented Apr 28, 2016

@bentranter This is really useful. Thanks for the contribution!

@bentranter bentranter deleted the add-json-indent-method branch April 28, 2016 03:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants