frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Giant JSON Viewer – Open 1GB+ JSON Files on Android (Rust and MMAP)

https://giantjson.com/
2•kotysoft•1h ago

Comments

kotysoft•1h ago
Hi HN, I'm the developer of Giant JSON Viewer.

I built this primarily as an engineering challenge. I was bored and didn't want to release just another generic utility app (there are already 1000s of identical JSON viewers on the Play Store). I wanted to build something unique that pushes the limits of what's possible on a phone.

Also, I hate ads. So there are no ads here.

Important: This is a viewer, not an editor. It treats the file as read-only to ensure safety and speed. Also, it strictly requires valid JSON syntax—it relies on precise structural indexing rather than fuzzy parsing.

The Tech Stack: I didn't invent anything new here; I just spent a lot of time trial-and-erroring my way to a solution that works on mobile constraints. I patched together a native Rust layer (via JNI) using some powerful existing crates:

* Zero-Copy Access 'memmap2' maps the source file. My custom index format is theoretically capable of addressing files up to 1TB (limited by the packed 40-bit offsets), but in practice, I've "only" tested it on files up to 2.5GB. Why? Honestly, I was too lazy to wait for massive indexes to rebuild every time I deployed a debug build.

* SIMD Scanning 'memchr' is used heavily for lexical scanning.

* Parallelism: 'rayon' keeps background tasks off the UI thread.

* Efficient Indexing: The custom structural index packs node metadata efficiently (roughly 32 bytes per node). This index is built once, cached on disk, and then memory-mapped. This technically allows us to navigate a massive tree with near-zero Java heap usage, as we just jump to offsets in the mapped index.

UI Experiments (The "Sandbox"): Since this was a personal playground for me, I experimented with some non-standard UI ideas:

* Visual Query Builder Instead of slow embedded logic, I built a visual query builder backed by a custom multi-pass SIMD search.

* 5KB Rendering Window The UI only parses/highlights the chunk visible in the viewport to prevent freezes on massive single lines.

* Base64 Extraction The Browser Mode can automatically detect and extract encoded files from within JSON string values. It supports ~50 formats including: PNG, JPEG, GIF, WebP, BMP, TIFF, ICO, SVG, HEIC, MP4, PDF, RTF, ZIP, PSD, RAR, 7Z, GZIP, TAR, MP3, OGG, FLAC, WAV, WebM, TTF, OTF...

A Note on Limits: Before you try to load a file with 2M nested depth: please check the Known Limitations page (https://giantjson.com/docs/known-limitations/). I've documented the architectural boundaries (like the 255 nesting depth limit to prevent stack overflows, and the 1TB max file size) so you know exactly what to expect.

Why I'm Posting: I'm honestly not sure if there's a mass-market need for this, or if I'm the only one who thinks it's cool.

I'd love to hear if any of you actually have a workflow where inspecting massive JSON files on a phone is useful (e.g., field ops, emergencies, game modding). Also, I'm curious what kind of "pathological" JSON structures you deal with—I've tried to handle the big ones (huge files, long lines), but real-world data is often surprising.

Play Store: https://play.google.com/store/apps/details?id=com.giantjsonv... Docs: https://giantjson.com/docs/

kundan_s__r•16m ago
Really impressive work, especially on mobile. The mmap + zero-copy, read-only approach feels like the right tradeoff for files at this scale.

Curious how it behaves with extremely wide objects or deep nesting — do index build time or memory pressure become the limiting factor?

Nice example of serious systems engineering in a place where it’s rarely done.

Show HN: Vibe scrape with AI Web Agents, prompt => get data [video]

https://www.youtube.com/watch?v=ggLDvZKuBlU
1•arjunchint•2m ago•0 comments

Smaller houses can lead to happier lives

https://www.washingtonpost.com/climate-environment/2026/01/06/smaller-houses-happier-lives/
1•bigwheels•6m ago•1 comments

A quick blog template built using NextJS and SleekCMS

https://github.com/sleekcms/sleekcms-next-blog
1•yusufnb•9m ago•0 comments

Are You Dead?: The viral Chinese app for young people living alone

https://www.bbc.com/news/articles/c3381r5nnn6o
1•bookofjoe•10m ago•1 comments

China's green power in Angola: When clean energy comes with heavy debt

https://globalvoices.org/2025/12/17/chinas-green-power-in-angola-when-clean-energy-comes-with-hea...
1•PaulHoule•11m ago•0 comments

My Productivity went up by 40%, I started talking to my docs instead of reading

https://www.yanna.pro/
2•adamazak•12m ago•0 comments

Germany Bashes Lunatic RFK Jr for Lying About Their Healthcare

https://www.youtube.com/watch?v=lE6saiibGkg
2•doener•13m ago•0 comments

Hello/Goodbye to Milo

https://joinmilo.substack.com/p/hellogoodbye
2•JacobAldridge•14m ago•0 comments

The $LANG Programming Language

https://news.ycombinator.com/thelang
9•dang•15m ago•2 comments

I guess that I am the one who has changed (2001)

https://everything2.com/user/psicotec/writeups/I%20guess%20that%20I%20am%20the%20one%20who%20has%...
1•davidja•16m ago•0 comments

Trump urges Tehran to show protesters humanity amid reports of rising death toll

https://apnews.com/article/iran-protests-trump-80f937dfbb3e04e5322dae30db3ad4b3
2•mhb•20m ago•1 comments

Google releases MedGemma 1.5 4B with medical image interpretation

https://research.google/blog/next-generation-medical-image-interpretation-with-medgemma-15-and-me...
2•MysticOracle•24m ago•0 comments

Show HN: Free Personal Password Manager

https://hypervault.com/insights/lets-make-it-personal-we-said
3•glennhv•28m ago•0 comments

Magnolia1234/bypass-paywalls-Firefox-clean

https://gitflic.ru/project/magnolia1234/bypass-paywalls-firefox-clean
2•OutOfHere•29m ago•1 comments

Generative AI – Human Interface Guidelines

https://developer.apple.com/design/human-interface-guidelines/generative-ai
2•Austin_Conlon•31m ago•0 comments

C64M: Commodore 64 Markup Language

https://www.youtube.com/watch?v=mZ2AzBbbrGw
1•bane•33m ago•0 comments

Supercharging S3 Intelligent Tiering with Content Crush

https://tech.scribd.com/blog/2026/content-crush.html
1•jaredwiener•36m ago•0 comments

Consumers Can Fight the Credit Card Industry

https://theprogressiveinvestor.org/how-consumers-can-fight-the-credit-card-industry/
1•chuckepstein•39m ago•2 comments

Ask HN: How are you preventing LLM hallucinations in production systems?

1•kundan_s__r•40m ago•2 comments

Never-before-seen Linux malware is "more advanced than typical"

https://arstechnica.com/security/2026/01/never-before-seen-linux-malware-is-far-more-advanced-tha...
3•jnord•41m ago•0 comments

America's biggest power grid operator has an AI problem – too many data centers

https://www.msn.com/en-us/money/companies/america-s-biggest-power-grid-operator-has-an-ai-problem...
1•jnord•44m ago•0 comments

Circular Buffer

https://en.wikipedia.org/wiki/Circular_buffer
1•tosh•46m ago•0 comments

ADHD. How do you manage the constant stream of thoughts and ideas?

22•chriswright1664•50m ago•31 comments

'Cosmic clock' in tiny crystals reveals rise and fall of ancient landscapes

https://theconversation.com/a-cosmic-clock-in-tiny-crystals-has-revealed-the-rise-and-fall-of-aus...
1•defrost•51m ago•0 comments

Eurail Data Security Incident – January 2026

https://eurail.zendesk.com/hc/en-001/categories/33099262757789-Data-Security-Incident-January-2026
1•captn3m0•54m ago•1 comments

-Wsign-Compare Is Garbage

https://staticthinking.wordpress.com/2023/07/25/wsign-compare-is-garbage/
1•welfareleech•55m ago•0 comments

Wegmans press release translated how to say we scan your face and call it safety

https://blog.adafruit.com/2026/01/13/wegmans-press-release-translated-how-to-say-we-scan-your-fac...
2•ptorrone•55m ago•1 comments

Simulating hardware keyboard input on Windows

https://autoptt.com/posts/simulating-a-real-keyboard-with-faker-input/
1•birdculture•57m ago•0 comments

My website was down because I didn't pay the server bill

https://jeena.net/website-down
3•jeena•58m ago•0 comments

The Science of Losing Weight

https://www.npr.org/2026/01/05/nx-s1-5662557/the-science-of-losing-weight
2•paulpauper•58m ago•0 comments