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 beautify in console? #132

Open
albert0m opened this issue Oct 31, 2018 · 2 comments
Open

JSON beautify in console? #132

albert0m opened this issue Oct 31, 2018 · 2 comments
Labels

Comments

@albert0m
Copy link

The json is not indented, meaning that reading a long JSON through console.log() requires a little effort. Is there any way to manually change this?

@ewanharris
Copy link
Contributor

@marconealberto I don't think that the pretty logging would be part of this package. You should be able to call JSON.stringify with a 3rd parameter space which controls the indentation, like console.log(JSON.stringify({some:'json'}, null, '\t')). This does however expose some issues

In iTerm2:

  • iOS logging seems to handle that just fine and indents correctly
  • Android does not indent correctly

With this package:

  • The indentation seems to be lost for all platforms.

I'll take a look into this and see if we can fix that

@ewanharris ewanharris added the bug label Nov 13, 2018
@albert0m
Copy link
Author

thank you for your response, hope something can be done because now that I have discovered Atom I don't want to ever go back to Appcelerator-Nightmare-Studio.

Something else that I'm unable to find is the ability to search in the console, am I missing something or it's just not possible?

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

No branches or pull requests

2 participants