this post was submitted on 18 Feb 2024
132 points (98.5% liked)

Python

6405 readers
10 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] namingthingsiseasy 3 points 9 months ago (1 children)

Yeah, I knew someone was going to say that. Usually it's more likely that Python is installed than jq - especially on servers. But yes, that would definitely work too.

[โ€“] [email protected] 2 points 9 months ago

Sure, I'm just not sure when I'd ever run into that. Either I'm doing it a lot and installing jq is reasonable, or I'm not allowed on the server anyway and need to copy/paste from logs.

I used to use python -m json.tool a lot, but I haven't needed to in many years.