{"id":15523097,"url":"https://github.com/xuwei-k/pj","last_synced_at":"2025-04-23T05:10:30.523Z","repository":{"id":32659801,"uuid":"195627680","full_name":"xuwei-k/pj","owner":"xuwei-k","description":"fork from https://github.com/softprops/pj","archived":false,"fork":false,"pushed_at":"2025-04-15T22:12:06.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T23:20:44.413Z","etag":null,"topics":["conscript","json","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"softprops/pj","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xuwei-k.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-07-07T08:28:19.000Z","updated_at":"2025-04-15T22:12:08.000Z","dependencies_parsed_at":"2023-02-15T20:31:39.724Z","dependency_job_id":"3932031e-a95b-44e5-9bdb-f0dc0445a2c8","html_url":"https://github.com/xuwei-k/pj","commit_stats":{"total_commits":236,"total_committers":5,"mean_commits":47.2,"dds":0.5847457627118644,"last_synced_commit":"0c9466dc4a4903c260bf4e55381da44015d43273"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fpj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fpj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fpj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fpj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuwei-k","download_url":"https://codeload.github.com/xuwei-k/pj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250372927,"owners_count":21419722,"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":["conscript","json","scala"],"created_at":"2024-10-02T10:43:30.855Z","updated_at":"2025-04-23T05:10:30.507Z","avatar_url":"https://github.com/xuwei-k.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```\ncs xuwei-k/pj\n```\n\n### usage\n\nFormatting piped data with curl (discarding stderr), use empty `--` flag\n\n```\ncurl 'http://api.tea.io/time' 2\u003e/dev/null | pj --\n{\n  \"tea_time\": true\n}\n```\n    \nFormatting json from file and writing to another.\n\n```\npj -f path/to/in.json -o path/to/out.json\n```\n    \nFormatting inline json\n\n```\npj -j '{\"oh\":\"la,la\",\"datas\":[1,2,3,4],\"objects\":{\"waka\":\"waka\"}}'\n```\n    \nGetting help\n\n```\npj -h\n```\n\n## as a library\n\n### install\n\n```scala\nlibraryDependencies += \"com.github.xuwei-k\" %% \"pj\" % \"0.1.1\"\n```\n\n### usage\n\n```\nval raw = \"\"\"{\"oh\":\"la,la\",\"datas\":[1,2,3,4],\"objects\":{\"waka\":\"waka\"}}\"\"\"\nprintln(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), Kenji Yoshida (xuwei-k) 2012 -\n\n[cs]: https://github.com/foundweekends/conscript#readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuwei-k%2Fpj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuwei-k%2Fpj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuwei-k%2Fpj/lists"}