{"id":16308956,"url":"https://github.com/bayashi/go-jl","last_synced_at":"2025-08-21T11:18:22.907Z","repository":{"id":161005428,"uuid":"635777861","full_name":"bayashi/go-jl","owner":"bayashi","description":"`go-jl` provides recursive JSON decorder to show the \"JSON within JSON\" log nicely","archived":false,"fork":false,"pushed_at":"2025-04-01T06:47:44.000Z","size":82,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T07:24:39.998Z","etag":null,"topics":["cli","command-line-tool","golang","json","log","logging","tool","viewer"],"latest_commit_sha":null,"homepage":"","language":"Go","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/bayashi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-03T12:41:02.000Z","updated_at":"2025-02-16T08:54:20.000Z","dependencies_parsed_at":"2024-12-31T08:21:59.928Z","dependency_job_id":"64a1fd60-fdb3-404a-a47b-c28eaf97d8ba","html_url":"https://github.com/bayashi/go-jl","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/bayashi/go-jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayashi%2Fgo-jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayashi%2Fgo-jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayashi%2Fgo-jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayashi%2Fgo-jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bayashi","download_url":"https://codeload.github.com/bayashi/go-jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bayashi%2Fgo-jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271469227,"owners_count":24765124,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","command-line-tool","golang","json","log","logging","tool","viewer"],"created_at":"2024-10-10T21:19:17.936Z","updated_at":"2025-08-21T11:18:22.860Z","avatar_url":"https://github.com/bayashi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-jl\n\n\u003ca href=\"https://github.com/bayashi/go-jl/blob/main/LICENSE\" title=\"go-jl License\"\u003e\u003cimg src=\"https://img.shields.io/badge/LICENSE-MIT-GREEN.png\" alt=\"MIT License\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/bayashi/go-jl/actions\" title=\"go-jl CI\"\u003e\u003cimg src=\"https://github.com/bayashi/go-jl/workflows/main/badge.svg\" alt=\"go-jl CI\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/report/github.com/bayashi/go-jl\" title=\"go-jl report card\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/bayashi/go-jl\" alt=\"go-jl report card\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/bayashi/go-jl\" title=\"Go go-jl package reference\" target=\"_blank\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/bayashi/go-jl.svg\" alt=\"Go Reference: go-jl\"\u003e\u003c/a\u003e\n\nShow the \"JSON within JSON\" log nicely\n\n## Usage\n\n`jl` command recursively converts JSON within JSON into one JSON structure.\n\nSimple case:\n\n```\n$ cat simple.json\n{\n    \"foo\": \"{\\\"bar\\\":\\\"{\\\\\\\"baz\\\\\\\":123}\\\"}\"\n}\n\n$ cat simple.json | jl\n{\n \"foo\": {\n  \"bar\": {\n   \"baz\": 123\n  }\n }\n}\n```\n\nMost use cases:\n\n```\n$ cat log.json\n{\n    \"message\": \"{\\\"level\\\":\\\"info\\\",\\\"ts\\\":1557004280.5372975,\\\"caller\\\":\\\"zap/server_interceptors.go:40\\\",\\\"msg\\\":\\\"finished unary call with code OK\\\",\\\"grpc.start_time\\\":\\\"2019-05-04T21:11:20Z\\\",\\\"system\\\":\\\"grpc\\\",\\\"span.kind\\\":\\\"server\\\",\\\"grpc.service\\\":\\\"FooService\\\",\\\"grpc.method\\\":\\\"GetBar\\\",\\\"grpc.code\\\":\\\"OK\\\",\\\"grpc.time_ms\\\":248.45199584960938}\\n\",\n    \"namespace\": \"foo-service\",\n    \"podName\": \"foo-86495899d8-m2vfl\",\n    \"containerName\": \"foo-service\"\n}\n\n$ cat log.json | jl\n{\n    \"containerName\": \"foo-service\",\n    \"message\": {\n        \"caller\": \"zap/server_interceptors.go:40\",\n        \"grpc.code\": \"OK\",\n        \"grpc.method\": \"GetBar\",\n        \"grpc.service\": \"FooService\",\n        \"grpc.start_time\": \"2019-05-04T21:11:20Z\",\n        \"grpc.time_ms\": 248.45199584960938,\n        \"level\": \"info\",\n        \"msg\": \"finished unary call with code OK\",\n        \"span.kind\": \"server\",\n        \"system\": \"grpc\",\n        \"ts\": 1557004280.5372975\n    },\n    \"namespace\": \"foo-service\",\n    \"podName\": \"foo-86495899d8-m2vfl\"\n}\n\n```\n\nFull options:\n\n```\nOptions:\n  -h, --help          Display help (This message) and exit\n  -P, --no-prettify   Not prettify the JSON. Prettified by default\n  -e, --show-error    Set this option to show errors, muted by default\n      --skip int      Skip to parse JSON if the length of the source JSON less than this\n  -n, --split-lf      Split line-feed \\n in each element\n  -t, --split-tab     Split tabs in each element\n  -v, --version       Display version and build info and exit\n```\n\n## Installation\n\n### homebrew install\n\nIf you are using Mac:\n\n```cmd\nbrew tap bayashi/tap\nbrew install bayashi/tap/go-jl\n```\n\n### binary install\n\nDownload binary from here: https://github.com/bayashi/go-jl/releases\n\n### go install\n\nIf you have golang envvironment:\n\n```cmd\ngo install github.com/bayashi/go-jl/cmd/jl@latest\n```\n\n## License\n\nMIT License\n\n## Author\n\nDai Okabayashi: https://github.com/bayashi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbayashi%2Fgo-jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbayashi%2Fgo-jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbayashi%2Fgo-jl/lists"}