• Login
Community
  • Login

'Unwrapping' something

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 425 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Joe McBrien
    last edited by Oct 10, 2023, 9:30 AM

    Hi,
    I’m not sure what the terminology is, otherwise it might be a simple Google search away:

    I am trying to get a .json file to open like picture A; and it did, once, and I don’t know why or how.
    Picture B is usually what it opens like. What button am I not pressing to get this format?
    Thank you! Great program!!

    Picture A, what I want:
    b25beae3-bebf-4c99-9dd5-968271f0b82c-image.png
    Picture B, what I usually get:
    f0b544e1-e7f3-4d1b-bb8e-09c1f23cc46c-image.png

    P 1 Reply Last reply Oct 10, 2023, 12:51 PM Reply Quote 0
    • P
      PeterJones @Joe McBrien
      last edited by Oct 10, 2023, 12:51 PM

      @Joe-McBrien ,

      Notepad++ shows the JSON as it really is. If you want to change how the JSON is formatted, you will need to run some sort of tool – whether a plugin in Notepad++ , like the JSON Viewer plugin or JSON Tools plugin, or whether an external tool that you run on the file before opening it in Notepad++ – which edits the file to use compressed vs. one-per-line layout.

      1 Reply Last reply Reply Quote 1
      • M
        Mark Olson
        last edited by Oct 10, 2023, 3:19 PM

        JsonTools is my plugin, and it does have pretty-printing of JSON, which would do what you want.

        That said, JsonTools can’t currently edit files in the hard drive. For example, there’s no tool implemented at present that allows you to choose a bunch of JSON files and pretty-print them all in one go.

        Would you like me to start working on that?

        1 Reply Last reply Reply Quote 1
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors