this post was submitted on 14 May 2024
64 points (98.5% liked)

Programmer Humor

32508 readers
607 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] fmstrat@lemmy.nowsci.com 2 points 6 months ago (1 children)
[–] bjornsno@lemm.ee 0 points 6 months ago (2 children)

Except if it's a single line file, only god can help you then. (Or running prettier -w on it before opening it or whatever.)

[–] xavier666@lemm.ee 1 points 6 months ago (1 children)

cat file.json | jq also works

[–] jimbolauski@lemm.ee 1 points 6 months ago

Render Media works the best

rm file.json

[–] fl42v@lemmy.ml 1 points 6 months ago (1 children)

4.2 megs on one line? Vim probably can handle it fine, although syntax won't be highlighted past a certain point

[–] BaldProphet@kbin.social -1 points 6 months ago

Technically every JSON file is a single line, with line break characters here and there