r/json

▲ 8 r/json+3 crossposts

For mac users who are dealing with a lot of GPX files exported from strava, biking routes, etc... I built a small quicklook viewer to allow you to peek into any GPX file to check it plotted on a map without actually opening it, allowing you to use the arrows to explore all files in a directory without firing any software to recognize it, 100% local, using anonymous openstreetmap tiles for viewing, and supports also some other formats: GeoJSON, KML, KMZ, GPKG, and a very limited support for SHP files.

Let me know your thoughts!

https://apps.apple.com/us/app/gis-quick-viewer/id6762661962

u/a2ra-ms — 16 hours ago
▲ 5 r/json+1 crossposts

I got tired of online JSON formatters sending my data to remote servers, so I built my own 100% client-side tool.

Hey everyone,

As an infrastructure engineer, I work with JSON and YAML webhooks every single day. I hated pasting sensitive API payloads into random online formatters because almost all of them send your data to a backend server to process it. Plus, most of them crash if you try to format a 5MB log file.

So, I spent the last few months building PrettyJSON (https://prettyjson.org).

I built it as a React SPA that runs entirely in your browser using your local JavaScript engine. Your data never leaves your device.

A few features I added for my own workflow:

  • Handles massive files: Tested up to 10MB without crashing (uses virtualized rendering).
  • Built-in Diff Tool: Side-by-side comparison for Kubernetes YAML or JSON configs.
  • Code Generation: Generates TypeScript interfaces, Go structs, and Python Dataclasses straight from the JSON.
  • Auto-repair: Fixes trailing commas, missing quotes, and comments automatically.

It's completely free and there are no paywalls. I'd love for you guys to tear it apart, test it, and let me know if you find any bugs or have feature requests!

Link: https://prettyjson.org

u/Awkward_Top_9743 — 1 day ago
▲ 0 r/json

Anyone else hate writing JSON schemas manually?

I was working with an API response like this:

{
  "id": 101,
  "email": "john@example.com",
  "is_active": true,
  "created_at": "2026-01-01T12:00:00Z"
}

And then had to write a JSON schema for it…

{
  "type": "object",
  "properties": {
    "id": { "type": "number" },
    "email": { "type": "string" },
    "is_active": { "type": "boolean" },
    "created_at": { "type": "string", "format": "date-time" }
  }
}

Not hard, but honestly feels like wasted time—especially for longer/nested responses.

So I built a small tool that just:

  • takes JSON,
  • generates schema instantly

👉 https://fixzi.ai/json-schema-generator

Curious how others are handling this?

  • Do you write schemas manually?
  • Use some library/tool?
  • Or just skip schemas altogether?
reddit.com
u/rohit2812 — 4 days ago
▲ 32 r/json

Tired of messy JSON? I made a tool that visualizes your data as both a tree and a pannable graph. 🚀

Hey everyone! 👋

I’ve always found it a bit painful to debug deeply nested JSON files, so I decided to build my own visualizer. Instead of just a boring list, I wanted something more interactive and visual.

I call it JSON Tree Viewer.

Live Demo: https://debabratasaha-dev.github.io/JSON-tree-viewer/
GitHub Repo: https://github.com/debabratasaha-dev/JSON-tree-viewer

Key Features:

  • 🕸️ Dual View: Switch between a classic interactive Tree View and a zoomable Graph View.
  • 🔍 Interactive Graph: Drag, pan, and zoom to explore complex JSON structures visually.
  • 🎨 Modern UI: Built with a glassmorphism sidebar, smooth animations, and a sleek dark mode.
  • 🏷️ Smart Tagging: Automatically detects data types (Strings, Numbers, Objects, etc.) with clean icons.
  • 🚀 Lightweight: Zero heavy frameworks—just pure HTML, CSS, and JavaScript.

I’d love to hear your feedback! What features should I add next? If you find it useful, I’d really appreciate a ⭐️ on GitHub!

u/itsmrsaha — 4 days ago
▲ 64 r/json+3 crossposts

I have spent some time recently reimplementing Mojang's DataFixerUpper library (which handles serialization and data transformation through the lifetime of a project) in C# with a few of my own takes on it. It uses literally zero reflection and rivals the built-in System.Text.Json library in allocations, sometimes even beating it (although latency is a bit of a problem right now because I'm not batching operations together), as evidenced by the benchmarks:

| Method                     | Mean     | Error    | StdDev    | Median   | Gen0   | Allocated |
|----------------------------|---------:|---------:|----------:|---------:|-------:|----------:|
| STJ_Serialize              | 237.9 ns | 24.37 ns |  71.86 ns | 194.4 ns | 0.0343 |      72 B |
| STJ_Serialize_IntArray     | 186.2 ns | 20.36 ns |  60.02 ns | 142.0 ns | 0.0191 |      40 B |
| STJ_Deserialize            | 321.7 ns |  5.65 ns |  10.19 ns | 318.4 ns | 0.0801 |     168 B |
| STJ_Deserialize_IntArray   | 198.2 ns |  2.63 ns |   2.46 ns | 197.5 ns | 0.0534 |     112 B |
| Codec_Serialize            | 546.0 ns | 59.11 ns | 174.29 ns | 418.2 ns | 0.0534 |     112 B |
| Codec_Serialize_IntArray   | 393.4 ns |  2.92 ns |   2.28 ns | 392.7 ns | 0.0610 |     128 B |
| Codec_Deserialize          | 524.7 ns |  5.14 ns |   4.29 ns | 524.2 ns | 0.0305 |      64 B |
| Codec_Deserialize_IntArray | 475.7 ns |  4.07 ns |   3.40 ns | 475.0 ns | 0.0343 |      72 B |

The library is designed in such a way that you can create tiny codecs for structs/classes and compose them together to serialize even complex/nested DTOs seamlessly. You can also define "timelines" for your objects and pass their serialized versions through transformation pipelines to add/remove/rename keys.

The library also happens to be format-agnostic by design, so the exact same APIs would work with a backend for cbor, custom binary, yaml, burping into the mic vocoded into gangsta's paradise or any other format you might think of.

u/AnnoyingMemer — 6 days ago
▲ 17 r/json+1 crossposts

JSON PATCH: I thought nullable DTO fields were enough

I thought nullable DTO fields were enough for PATCH.

My rule was simple: if a field is missing or null, treat both the same. Client sends only what it wants to update.

That worked until it didn’t

We accidentally wiped a production value because the client updated one field and omitted another intentionally. :(

After deserialization, I couldn’t distinguish “not sent” from “explicit null,” so my code cleared a field that should have stayed untouched. So we had to roll back. No problem

I am looking at a few alternatives like nullable fields, explicit field_present flags, JSON Patch, and wrapper types that preserve field presence.

Curious how other people handle “missing vs null” in PATCH without making the client payload ugly?

reddit.com
u/dzimazilla — 9 days ago
▲ 9 r/json+1 crossposts

Simplify nested JSON in seconds with level selection and visualization

Hey guys, I believe most of you know the pain of dealing with large nested JSON from API responses or production traces. It gets even more painful when this is your daily job and you have no good way to visualize it… except quitting :))

I ended up building one for myself with the features I needed:
- level selection
- visualize JSON as a graph node
- send JSON directly to the API Client tool and test it without leaving the current tab

Check it out if interested:
https://catssaymeow.org/json-formatter/

u/limario_bp — 8 days ago
▲ 6 r/json+1 crossposts

I built a tool to debug API responses (JSON/XML) faster — looking for feedback

Hey everyone,

While working with APIs, I kept hitting the same annoying issues:

- Invalid JSON breaking things

- XML responses that are hard to debug

- Comparing API responses manually when something changes

- No easy way to validate if an API response still matches expected structure

So I started building a tool to make this easier.

👉 https://fixzi.ai

Right now it supports:

- JSON validation + auto-fix

- XML validation

- JSON diff (compare responses)

- (Working on) API contract monitoring — basically detecting when an API response changes unexpectedly

It’s still early, but I’m trying to make it genuinely useful for developers working with APIs.

Would love honest feedback:

- What’s missing?

- What would make this actually useful for your workflow?

Thanks 🙌

reddit.com
u/rohit2812 — 10 days ago
▲ 1 r/json

How to view JSON files around 1gb large

As said in the title, I requested a discord data package to find my ip address of my apartment which i moved out of and I find that I cant open some of the json files cause they're too large

reddit.com
u/Infernixfuryz — 13 days ago