{"id":16476399,"url":"https://github.com/softprops/pj","last_synced_at":"2025-10-27T16:31:25.778Z","repository":{"id":2278434,"uuid":"3235449","full_name":"softprops/pj","owner":"softprops","description":"a pajama party for your json strings and streamers ","archived":false,"fork":false,"pushed_at":"2013-06-11T13:21:56.000Z","size":113,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-09T09:41:22.995Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softprops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-21T19:02:59.000Z","updated_at":"2013-12-10T15:44:46.000Z","dependencies_parsed_at":"2022-09-07T11:40:59.753Z","dependency_job_id":null,"html_url":"https://github.com/softprops/pj","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fpj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fpj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fpj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fpj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/pj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861023,"owners_count":16556008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T12:42:22.280Z","updated_at":"2025-10-27T16:31:25.402Z","avatar_url":"https://github.com/softprops.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pj\n\nMakes json all pretty-like.\n\n## as a conscript app\n\n### install\n\nInstallation requires [conscript][cs]\n\n    cs softprops/pj\n    \n### usage\n\nFormatting piped data with curl (discarding stderr), use empty `--` flag\n\n    curl 'http://api.tea.io/time' 2\u003e/dev/null | pj --\n    {\n      \"tea_time\": true\n    }\n    \nFormatting json from file and writing to another.\n\n    pj -f path/to/in.json -o path/to/out.json\n    \nFormatting inline json\n\n    pj -j '{\"oh\":\"la,la\",\"datas\":[1,2,3,4],\"objects\":{\"waka\":\"waka\"}}'\n    \nGetting help\n\n    pj -h\n\n## as a library\n\n### install\n\nInstall using [ls][ls]\n\n    ls-install pj\n\nInstall by hand\n\n    libraryDependencies += \"me.lessis\" %% \"pj\" % \"0.1.0\"\n\n### usage\n\n    val raw = \"\"\"{\"oh\":\"la,la\",\"datas\":[1,2,3,4],\"objects\":{\"waka\":\"waka\"}}\"\"\"\n    println(pj.Printer(raw))\n    {\n      \"oh\" : \"la,la\",\n      \"datas\" : [ 1, 2, 3, 4 ],\n      \"objects\" : {\n        \"waka\" : \"waka\"\n      }\n    }\n    \n\nDoug Tangren (softprops) 2012\n\n[cs]: https://github.com/n8han/conscript#readme\n[ls]: http://ls.implicit.ly/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fpj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Fpj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fpj/lists"}