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

Already on GitHub? Sign in to your account

add a helper to allow indenting json output #3

Merged
merged 1 commit into from Jun 5, 2012

Conversation

Projects
None yet
3 participants
Contributor

AD7six commented Jun 5, 2012

In debug mode, use it to output responses

@AD7six AD7six add a helper to allow indenting json output
In debug mode, use it to output responses
3450873
Contributor

lorenzo commented Jun 5, 2012

Won't installing a browser extension be better? I use this one https://chrome.google.com/webstore/detail/chklaanhfefbnpoihckbnefhakgolnmc

Contributor

AD7six commented Jun 5, 2012

A browser extension doesn't help with:

curl https://foo....
{"success":false, {"data":{"exception":{"class": ...

Or any other (debugging) use case where the client isn't a browser. I basically don't use a browser at all for api development.

It's effectively a temporary solution until 5.4 is installed where I'm using this plugin :).

Contributor

lorenzo commented Jun 5, 2012

pipe it to jsonlit :P https://github.com/zaach/jsonlint

Just alternatives, I don't like reinventing things :P

Contributor

AD7six commented Jun 5, 2012

I don't really think implementing JSON_PRETTY_PRINT for php < 5.4 is reinventing things

@jippi jippi added a commit that referenced this pull request Jun 5, 2012

@jippi jippi Merge pull request #3 from nodesagency/feature/indent-json
add a helper to allow indenting json output
8a908f7

@jippi jippi merged commit 8a908f7 into develop Jun 5, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment