{"id":16581728,"url":"https://github.com/kaushalmodi/p4ztag_to_json","last_synced_at":"2026-04-28T01:32:02.741Z","repository":{"id":48975529,"uuid":"188514937","full_name":"kaushalmodi/p4ztag_to_json","owner":"kaushalmodi","description":"Convert Perforce P4 Ztag data format to JSON","archived":false,"fork":false,"pushed_at":"2021-07-02T17:36:59.000Z","size":122,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-11T06:34:46.888Z","etag":null,"topics":["json","nim","p4","perforce","serialization-format","ztag"],"latest_commit_sha":null,"homepage":"https://kaushalmodi.github.io/p4ztag_to_json/","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaushalmodi.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-25T03:15:24.000Z","updated_at":"2022-10-19T21:27:47.000Z","dependencies_parsed_at":"2022-08-27T20:02:48.098Z","dependency_job_id":null,"html_url":"https://github.com/kaushalmodi/p4ztag_to_json","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/kaushalmodi/p4ztag_to_json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fp4ztag_to_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fp4ztag_to_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fp4ztag_to_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fp4ztag_to_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaushalmodi","download_url":"https://codeload.github.com/kaushalmodi/p4ztag_to_json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaushalmodi%2Fp4ztag_to_json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["json","nim","p4","perforce","serialization-format","ztag"],"created_at":"2024-10-11T22:29:46.130Z","updated_at":"2026-04-28T01:32:02.726Z","avatar_url":"https://github.com/kaushalmodi.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+title: P4 Ztag to JSON\n\n[[https://github.com/kaushalmodi/p4ztag_to_json/actions/workflows/test.yml][https://github.com/kaushalmodi/p4ztag_to_json/actions/workflows/test.yml/badge.svg]]\n[[https://github.com/kaushalmodi/p4ztag_to_json/actions/workflows/docs.yml][https://github.com/kaushalmodi/p4ztag_to_json/actions/workflows/docs.yml/badge.svg]]\n\nLittle utility to convert the Perforce P4 \"Ztag\" format data to JSON.\n\n* Command line\n** Pass a ztag format text file\n#+begin_example\np4ztag_to_json \u003cztagfile1.foo\u003e \u003cztagfile2.bar\u003e ..\n# Generates \u003cztagfile1.json\u003e \u003cztagfile2.json\u003e ..\n#+end_example\n** Pipe output of a ~p4 -ztag ..~ command to ~p4ztag_to_json~\n#+begin_example\np4 -ztag info | p4ztag_to_json\n# Prints JSONified version of that input to stdout\n#+end_example\n* Sample \"ztag\" data\n#+begin_example\n... depotFile //ydf/yepba/ik/LEMHT/uopd/tr/ofvd/ai_rgl.ng\n... rev0 35\n... change0 587347\n... action0 mdlo\n... type0 rkwr\n... time0 1778604642\n... user0 vtsoq\n... client0 nq:awjyr:xrjmh.cyo:3724802i\n... fileSize0 73567\n... digest0 R008427167X2MKRE116S1Q0WFA4OP01T\n... desc0 fnny txoeb: qltuvf KNN HHJ3 gbdr ydwwcj axmdlinwff\n\n- bqq_ljqujqav_ofnw   -\u003e CCW_bv\n- nea_hswpfmas_vawxny -\u003e WJA_ny\n- fse_hnpoqedk_jxf    -\u003e VVM_xc\n\n... how0,0    poxhsp oilq\n... file0,0   //lwj/hfssq/tcjvrcxx/POFJK/lkucc6/ol/gudu/my/kakg/pn_doa.xq\n... srev0,0   #ddpk\n... erev0,0   #1\n... rev1 52\n... change1 111522\n... action1 myqr\n... type1 tkrt\n... time1 1332615524\n... user1 wpeun\n... client1 hu:wedwm:psspa.udl:7045580a\n... fileSize1 02622\n... digest1 6TVK8T0SV0V8PY454H374KM17AA1K43T\n... desc1 Rcrrtxhjv xgr fw_sutxg_nuifp ss ic bxm [QJM]\n\nLlkr ta c fmdikgakkl xxohgh .. fusds xfd td_jurfh_ocxji vc bny fiw ftnlfvdw, lhddefunqh wobbo eluoultw fla fnqb jb peotcc.\n#+end_example\n* Converted JSON\n#+begin_src json\n[\n  {\n    \"depotFile\": \"//ydf/yepba/ik/LEMHT/uopd/tr/ofvd/ai_rgl.ng\",\n    \"nested\": [\n      \"nested0\",\n      \"nested1\"\n    ],\n    \"nested0\": {\n      \"rev\": \"35\",\n      \"change\": \"587347\",\n      \"action\": \"mdlo\",\n      \"type\": \"rkwr\",\n      \"time\": \"1778604642\",\n      \"user\": \"vtsoq\",\n      \"client\": \"nq:awjyr:xrjmh.cyo:3724802i\",\n      \"fileSize\": \"73567\",\n      \"digest\": \"R008427167X2MKRE116S1Q0WFA4OP01T\",\n      \"desc\": \"fnny txoeb: qltuvf KNN HHJ3 gbdr ydwwcj axmdlinwff\\n- bqq_ljqujqav_ofnw   -\u003e CCW_bv\\n- nea_hswpfmas_vawxny -\u003e WJA_ny\\n- fse_hnpoqedk_jxf    -\u003e VVM_xc\\n\",\n      \"nested\": [\n        \"nested0\"\n      ],\n      \"nested0\": {\n        \"how\": \"   poxhsp oilq\",\n        \"file\": \"  //lwj/hfssq/tcjvrcxx/POFJK/lkucc6/ol/gudu/my/kakg/pn_doa.xq\",\n        \"srev\": \"  #ddpk\",\n        \"erev\": \"  #1\"\n      }\n    },\n    \"nested1\": {\n      \"rev\": \"52\",\n      \"change\": \"111522\",\n      \"action\": \"myqr\",\n      \"type\": \"tkrt\",\n      \"time\": \"1332615524\",\n      \"user\": \"wpeun\",\n      \"client\": \"hu:wedwm:psspa.udl:7045580a\",\n      \"fileSize\": \"02622\",\n      \"digest\": \"6TVK8T0SV0V8PY454H374KM17AA1K43T\",\n      \"desc\": \"Rcrrtxhjv xgr fw_sutxg_nuifp ss ic bxm [QJM]\\nLlkr ta c fmdikgakkl xxohgh .. fusds xfd td_jurfh_ocxji vc bny fiw ftnlfvdw, lhddefunqh wobbo eluoultw fla fnqb jb peotcc.\"\n    }\n  }\n]\n#+end_src\n* References\n- [[https://www.perforce.com/manuals/cmdref/Content/CmdRef/Commands%20by%20Functional%20Area.html][Helix Core P4 Command Reference]]\n- [[https://www.perforce.com/blog/fun-formatting][Fun with Formatting -- Perforce Blog]]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaushalmodi%2Fp4ztag_to_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaushalmodi%2Fp4ztag_to_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaushalmodi%2Fp4ztag_to_json/lists"}