René's URL Explorer Experiment


Title: How to tabulate JSON from stdin? · Issue #173 · astanin/python-tabulate · GitHub

Open Graph Title: How to tabulate JSON from stdin? · Issue #173 · astanin/python-tabulate

X Title: How to tabulate JSON from stdin? · Issue #173 · astanin/python-tabulate

Description: When I run a command like this: tabulate --format github - <<"EOF" [ { "column1": "data", "column2": 123, "column3": true, "column4": null }, { "column1": "Longer string", "column2": 123, "column3": true, "column4": null } ] EOF I expect...

Open Graph Description: When I run a command like this: tabulate --format github - <<"EOF" [ { "column1": "data", "column2": 123, "column3": true, "column4": null }, { "column1": "Longer string", "column2": 123, "column3"...

X Description: When I run a command like this: tabulate --format github - <<"EOF" [ { "column1": "data", "column2": 123, "column3": true, "column4"...

Opengraph URL: https://github.com/astanin/python-tabulate/issues/173

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to tabulate JSON from stdin?","articleBody":"When I run a command like this:\r\n\r\n```bash\r\ntabulate --format github - \u003c\u003c\"EOF\"\r\n[\r\n    {\r\n        \"column1\": \"data\",\r\n        \"column2\": 123,\r\n        \"column3\": true,\r\n        \"column4\": null\r\n    },\r\n    {\r\n        \"column1\": \"Longer string\",\r\n        \"column2\": 123,\r\n        \"column3\": true,\r\n        \"column4\": null\r\n    }\r\n]\r\nEOF\r\n```\r\n\r\nI expect output like this:\r\n\r\n```\r\n| column1       |   column2 | column3   | column4   |\r\n|---------------|-----------|-----------|-----------|\r\n| data          |       123 | True      |           |\r\n| Longer string |       123 | True      |           |\r\n```\r\n\r\nUnfortunately I get output like this:\r\n\r\n```\r\n|---|------------|---------|----------|\r\n| [ |            |         |          |\r\n|   | {          |         |          |\r\n|   | \"column1\": | \"data\", |          |\r\n|   | \"column2\": | 123,    |          |\r\n|   | \"column3\": | true,   |          |\r\n|   | \"column4\": | null    |          |\r\n|   | },         |         |          |\r\n|   | {          |         |          |\r\n|   | \"column1\": | \"Longer | string\", |\r\n|   | \"column2\": | 123,    |          |\r\n|   | \"column3\": | true,   |          |\r\n|   | \"column4\": | null    |          |\r\n|   | }          |         |          |\r\n| ] |            |         |          |\r\n```\r\n\r\n\r\nIn the README for the command-line utility I don't see any input format options or an expected input format.\r\n\r\nAs a library the README says tabulate supports \"list or another iterable of dicts (keys as columns)\". This matches my use case as it's what you would get after converting the input to via `json.load`\r\n\r\nAm I missing something?\r\n\r\nIf not, would you consider supporting this use case?\r\n\r\nCurrently I use jtbl for this (https://github.com/kellyjonbrazil/jtbl/issues/9) but I'd like tabulate to support it too as it has even more useful formatting options.\r\n\r\nIf it's not possible to guess the input format I'd accept something like an `--input-format json` similar to [in2csv](https://csvkit.readthedocs.io/en/latest/scripts/in2csv.html)'s `--format json` option.","author":{"url":"https://github.com/iainelder","@type":"Person","name":"iainelder"},"datePublished":"2022-03-31T07:54:03Z","url":"https://github.com/astanin/python-tabulate/issues/173"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ed6f4ab6-e09a-1451-217f-f3c97caf40f1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE286:2C041B:7C648:A6CEE:6AFF5DC0
html-safe-nonced9069c46316b5a51c991d817375de1e81b3e2084d0f2925d0e2b685d0a95d77e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjg2OjJDMDQxQjo3QzY0ODpBNkNFRTo2QUZGNURDMCIsInZpc2l0b3JfaWQiOiI1MzI2NTY1NjAxMzExNjc3ODg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7246d8b3e2da1eefffb71af12612bc22a42468a0330f976803165d8c0b2706ae
hovercard-subject-tagissue:1187664164
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/astanin/python-tabulate/173/issue_layout
twitter:imagehttps://opengraph.githubassets.com/321a19a8dec5aade1b071ffa8a76d1f4f1a3cb6080e6f8c13206bede0b478a77/astanin/python-tabulate/issues/173
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/321a19a8dec5aade1b071ffa8a76d1f4f1a3cb6080e6f8c13206bede0b478a77/astanin/python-tabulate/issues/173
og:image:altWhen I run a command like this: tabulate --format github - <<"EOF" [ { "column1": "data", "column2": 123, "column3": true, "column4": null }, { "column1": "Longer string", "column2": 123, "column3"...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiainelder
hostnamegithub.com
expected-hostnamegithub.com
None2422ccd4bc783f932948cce4871cb9e0622bab749db07f387c9631b7e6834d1f
turbo-cache-controlno-preview
go-importgithub.com/astanin/python-tabulate git https://github.com/astanin/python-tabulate.git
octolytics-dimension-user_id71802
octolytics-dimension-user_loginastanin
octolytics-dimension-repository_id205875548
octolytics-dimension-repository_nwoastanin/python-tabulate
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id205875548
octolytics-dimension-repository_network_root_nwoastanin/python-tabulate
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2a39546baeb98186e651a01d5d7aa6465825eeb1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/astanin/python-tabulate/issues/173#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fastanin%2Fpython-tabulate%2Fissues%2F173
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fastanin%2Fpython-tabulate%2Fissues%2F173
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=astanin%2Fpython-tabulate
Reloadhttps://github.com/astanin/python-tabulate/issues/173
Reloadhttps://github.com/astanin/python-tabulate/issues/173
Reloadhttps://github.com/astanin/python-tabulate/issues/173
astaninhttps://github.com/astanin
python-tabulatehttps://github.com/astanin/python-tabulate
Codehttps://github.com/astanin/python-tabulate
Issues75 (75)https://github.com/astanin/python-tabulate/issues
Pull requests63 (63)https://github.com/astanin/python-tabulate/pulls
Actionshttps://github.com/astanin/python-tabulate/actions
Security and qualityhttps://github.com/astanin/python-tabulate/security
Insightshttps://github.com/astanin/python-tabulate/pulse
https://github.com/astanin/python-tabulate
New issuehttps://github.com/login?return_to=https://github.com/astanin/python-tabulate/issues/173
New issuehttps://github.com/login?return_to=https://github.com/astanin/python-tabulate/issues/173
#419https://github.com/astanin/python-tabulate/pull/419
How to tabulate JSON from stdin?https://github.com/astanin/python-tabulate/issues/173#top
#419https://github.com/astanin/python-tabulate/pull/419
CLIhttps://github.com/astanin/python-tabulate/issues?q=state%3Aopen%20label%3A%22CLI%22
enhancementNew feature or requesthttps://github.com/astanin/python-tabulate/issues?q=state%3Aopen%20label%3A%22enhancement%22
v0.11.0https://github.com/astanin/python-tabulate/milestone/4
https://github.com/iainelder
iainelderhttps://github.com/iainelder
on Mar 31, 2022https://github.com/astanin/python-tabulate/issues/173#issue-1187664164
kellyjonbrazil/jtbl#9https://github.com/kellyjonbrazil/jtbl/issues/9
in2csvhttps://csvkit.readthedocs.io/en/latest/scripts/in2csv.html
https://github.com/astanin
astaninhttps://github.com/astanin
on Oct 7, 2022https://github.com/astanin/python-tabulate/issues/173#issuecomment-1271289271
astaninhttps://github.com/astanin
help wantedExtra attention is neededhttps://github.com/astanin/python-tabulate/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Oct 7, 2022https://github.com/astanin/python-tabulate/issues/173#event-7541606218
astaninhttps://github.com/astanin
v0.10https://github.com/astanin/python-tabulate/milestone/3
on Oct 19, 2022https://github.com/astanin/python-tabulate/issues/173#event-7622622043
https://github.com/Tatsh
Tatshhttps://github.com/Tatsh
on Apr 28, 2023https://github.com/astanin/python-tabulate/issues/173#issuecomment-1527790479
Stack Overflow questionhttps://stackoverflow.com/questions/32960857/how-to-convert-arbitrary-simple-json-to-csv-using-jq
astaninhttps://github.com/astanin
v0.10.0https://github.com/astanin/python-tabulate/milestone/3
v0.11.0https://github.com/astanin/python-tabulate/milestone/4
on Mar 9, 2026https://github.com/astanin/python-tabulate/issues/173#event-23398200234
https://github.com/astanin
astaninhttps://github.com/astanin
on Mar 9, 2026https://github.com/astanin/python-tabulate/issues/173#issuecomment-4024177389
astaninhttps://github.com/astanin
enhancementNew feature or requesthttps://github.com/astanin/python-tabulate/issues?q=state%3Aopen%20label%3A%22enhancement%22
CLIhttps://github.com/astanin/python-tabulate/issues?q=state%3Aopen%20label%3A%22CLI%22
help wantedExtra attention is neededhttps://github.com/astanin/python-tabulate/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Mar 9, 2026https://github.com/astanin/python-tabulate/issues/173#event-23398304186
astaninhttps://github.com/astanin
on Mar 10, 2026https://github.com/astanin/python-tabulate/issues/173#event-23426518929
implement support of JSONL and CSV input formats in command line utilityhttps://github.com/astanin/python-tabulate/commit/c327d6c41981d3668b96caeb4bab10478c263030
https://docs.github.com/articles/closing-issues-via-commit-messages
c327d6chttps://github.com/astanin/python-tabulate/commit/c327d6c41981d3668b96caeb4bab10478c263030
astaninhttps://github.com/astanin
completedhttps://github.com/astanin/python-tabulate/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#419https://github.com/astanin/python-tabulate/pull/419
on Mar 11, 2026https://github.com/astanin/python-tabulate/issues/173#event-23461438528
Sign up for freehttps://github.com/signup?return_to=https://github.com/astanin/python-tabulate/issues/173
Sign in to commenthttps://github.com/login?return_to=https://github.com/astanin/python-tabulate/issues/173
CLIhttps://github.com/astanin/python-tabulate/issues?q=state%3Aopen%20label%3A%22CLI%22
enhancementNew feature or requesthttps://github.com/astanin/python-tabulate/issues?q=state%3Aopen%20label%3A%22enhancement%22
v0.11.0No due datehttps://github.com/astanin/python-tabulate/milestone/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.