Skip to content

[Suggestion] Add support for JSON_PRETTY_PRINT #232

Open

Description

@basteyy

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?

Activity

  1. Timu57 commented on May 8, 2022

    @Timu57
    Member

    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 😊

  2. REDAL commented on Jul 5, 2022

    @REDAL

    @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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions