frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Python Streaming JSON Formatter That Works with Existing Serializers

https://medium.com/@yair.lenga/a-streaming-json-formatter-that-works-with-existing-serializers-eced220da37d
1•yairlenga•51m ago

Comments

yairlenga•51m ago
Most JSON serializers give you only two choices: compact machine output, or fully expanded "pretty-print" for humans. Neither is ideal when JSON needs to be consumed by both.

I wrote a small Python module called jsonfold, post processing the output of json.dump() (and other similar serializers). It will selectively fold short lines and small containers while still keeping the JSON readable.

It works as a lightweight wrapper for file-like objects, and it does NOT re-parse the JSON stream, so it can handle large documents with fixed memory usage and linear processing time.

Sample output (line width, level of folding, ... can be customized):

{ "a": { "b": { "c": "abc" } }, "x": { "y": { "z": "xyz" } } }

The Worlds Left to Conquer

https://ludic.mataroa.blog/blog/the-worlds-left-to-conquer/
1•pards•1m ago•0 comments

Signing Is for the Bad Days

https://nesbitt.io/2026/05/24/signing-is-for-the-bad-days.html
1•jruohonen•2m ago•0 comments

No captain, my captain – a crewless warship

https://www.theregister.com/offbeat/2026/05/24/no-captain-my-captain-navantia-floats-crewless-war...
1•asdefghyk•8m ago•1 comments

Physicists create hybrid light-matter particles to replace electrons in AI cmpt

https://www.sciencedaily.com/releases/2026/05/260518041341.htm
1•Ember_Wipe•8m ago•0 comments

The Cruelty Is the Point: President Trump and His Supporters

https://www.theatlantic.com/ideas/archive/2018/10/the-cruelty-is-the-point/572104/
1•KnuthIsGod•9m ago•0 comments

As a Doctor, I Can Understand the Allure of ChatGPT

https://www.nytimes.com/2026/05/24/opinion/doctor-ai-chatgpt.html
1•sirnicolaz•10m ago•0 comments

Nature Solved Robotics

https://www.youtube.com/watch?v=S67z2aekBrI
1•de6u99er•14m ago•0 comments

What it takes to transpose a matrix

https://gudok.xyz/transpose/
1•tosh•19m ago•0 comments

Inference Cost Reduction

https://reducio.xyz/
1•syn_pamylkovaj•28m ago•1 comments

CanLover – Can Bus Analyzer for Vector/Peak/Kvaser on Windows and Linux

https://canlover.ddns.net/
1•denisswfc•28m ago•0 comments

Secure Boot and Microsoft CA Rollover – a heads-up for distributions

https://blog.einval.com/2026/05/22#secure_boot_ca_rollover
1•edward•29m ago•0 comments

What I've Learned (So Far) Building Online Mini Games with Elixir and Swift

https://calvinflegal.com/2026/05/24/what-ive-learned-so-far-building-online-mini-games-with-elixi...
2•calflegal•33m ago•1 comments

Beware the "Natural" Quaternion

https://possiblywrong.wordpress.com/2021/05/10/beware-the-natural-quaternion/
1•possiblywrong•38m ago•0 comments

First event in the last 12 years Pascal took away the shields

2•Fem-raka-raka•38m ago•0 comments

Show HN: My first app, artisanally vibe-coded in 4 months

https://mijn-travelly.nl/en/
2•jeroen_stulen•43m ago•2 comments

K Fragments

https://beyondloom.com/blog/fragments.html
2•tosh•47m ago•0 comments

Python Streaming JSON Formatter That Works with Existing Serializers

https://medium.com/@yair.lenga/a-streaming-json-formatter-that-works-with-existing-serializers-ec...
1•yairlenga•51m ago•1 comments

Data Orientation

https://en.wikipedia.org/wiki/Data_orientation
1•tosh•51m ago•0 comments

Game of Thrones' Hannah Murray found a wellness cult – and lost her mind

https://www.theguardian.com/film/2026/may/23/hannah-murray-interview-wellness-cult-sectioned
2•Michelangelo11•58m ago•0 comments

Google Discover's headline rewrites strike again

https://www.theverge.com/tech/936822/google-discovers-headline-rewrites-strike-again
2•pzmarzly•59m ago•0 comments

Google adds llms.txt check to Chrome Lighthouse

https://searchengineland.com/google-llms-txt-chrome-lighthouse-478246
1•networked•59m ago•0 comments

Scriba: Structured Logging in Lisp (Guile Scheme)

https://codeberg.org/jjba23/scriba
1•jjba23•1h ago•0 comments

State Explosion Security Problem in AI-Era Software Supply Chains

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=09213cdc-9f30-4e82-aa6f-...
1•nirwandogra•1h ago•0 comments

Infinity and Infinitesimal

https://65d7df6ffa7c4eb6ad309066bcf8e7bd.prod.enterapp.pro/
1•tvali•1h ago•0 comments

Show HN: Pack-src – pack source code into clean shareable ZIP

https://github.com/muhammadmuzzammil1998/pack-src
1•muzzammildotxyz•1h ago•0 comments

Computer-Use-Linux

1•anotherCodder•1h ago•0 comments

Built a email agent for founders which never sleeps

1•maulik_builds•1h ago•0 comments

'Impossible' Black Holes: Scientists Know Why

https://www.wired.com/story/the-universe-is-full-of-impossible-black-holes-now-scientists-know-why/
1•Timofeibu•1h ago•0 comments

ShannonBase: The Lightweight Semantic Layer for Enterprise AI SQL

https://medium.com/@shannon.data.tech/shannonbase-the-lightweight-semantic-layer-for-enterprise-a...
1•shannon-data-ai•1h ago•1 comments

Captainys / Townsemu Releases v20260522

https://github.com/captainys/TOWNSEMU/releases/tag/v20260522
1•cyrc•1h ago•0 comments