Skip to content

blakeyoder/prettify-json-clipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prettifies JSON in your clipboard


Turn disappointing json into happy json!

😞

{"glossary":{"GlossDiv":{"GlossList":{"GlossEntry":{"Abbrev":"ISO 8879:1986","Acronym":"SGML","GlossDef":{"GlossSeeAlso":
["GML","XML"],"para":"A meta-markup language, used to create markup languages such as DocBook."},
"GlossSee":"markup","GlossTerm":"Standard Generalized Markup Language","ID":"SGML","SortAs":"SGML"}},"title":"S"},"title":"example glossary"}}

😄

{
  "glossary": {
    "GlossDiv": {
      "GlossList": {
        "GlossEntry": {
          "Abbrev": "ISO 8879:1986",
          "Acronym": "SGML",
          "GlossDef": {
            "GlossSeeAlso": [
              "GML",
              "XML"
            ],
            "para": "A meta-markup language, used to create markup languages such as DocBook."
          },
          "GlossSee": "markup",
          "GlossTerm": "Standard Generalized Markup Language",
          "ID": "SGML",
          "SortAs": "SGML"
        }
      },
      "title": "S"
    },
    "title": "example glossary"
  }
}

Installation:

  1. Clone the repository
  2. Create a new virtual env with $ virtualenv venv. See docs for more information on Python's virtual environment
  3. $ source project_name/bin/activate
  4. $ pip install requirements.txt
  5. $ source start.sh to run program

The program runs via the nohup command. This will prevent the process from being stopped on logout. To force kill the process there are 2 commands you can run to find and kill this process.

$ lsof -c Python
$ kill -9 <PID>

About

Prettifies json copied to the clipboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published