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

[Suggestion] Add support for JSON_PRETTY_PRINT #232

Open
basteyy opened this issue May 7, 2022 · 2 comments
Open

[Suggestion] Add support for JSON_PRETTY_PRINT #232

basteyy opened this issue May 7, 2022 · 2 comments

Comments

@basteyy
Copy link

basteyy commented May 7, 2022

While developing, I often need to check the results inside the JSON. In bigger files, it's hard to keep an overview. So, I suggest adding the option JSON_PRETTY_PRINT (by default deactivated). Any thoughts?

@Timu57
Copy link
Member

Timu57 commented May 8, 2022

Hi @basteyy
I see how that could benefit the development workflow.
Currently you can query the documents to inspect/ dump their content.

That said, you are welcome to implement such a feature

Feel free to ask for help if needed 😊

@REDAL
Copy link

REDAL commented Jul 5, 2022

@basteyy
maybe it is a little bit late,
but it's a simple workaround, if you want to do it yourself,

open store.php

make a search and replace for this

search for

json_encode($data)

replace it with

json_encode($data, JSON_PRETTY_PRINT))

in all occurrences

hope it will help you :)

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

No branches or pull requests

3 participants