Skip to main content

Inspect and extract JSON structure safely with optional fields and type merging

Project description

🔍 jsonlens

See the structure of any JSON instantly — without exposing sensitive data.


🚀 Why jsonlens?

Working with APIs is painful:

  • ❌ Huge JSON (1000+ lines)
  • ❌ Deep nesting
  • ❌ Sensitive data (can't share)

👉 jsonlens solves this.


✨ Features

  • 🔐 Safe: no real data, only structure
  • ❓ Optional fields detection (?)
  • 🔄 Type merging (int | str)
  • 📦 List compression (... N more items)
  • ⚡ Fast / Sample / Full modes

📦 Install

pip install jsonlens

Usage - Python

from jsonlens import build_structure import json

data = { "users": [ {"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob", "email": "bob@mail.com"} ] }

print(json.dumps(build_structure(data), indent=2))

Output

{ "users": [ { "id": "int", "name": "str", "email?": "str" } ] }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsonlens-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsonlens-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file jsonlens-0.1.0.tar.gz.

File metadata

  • Download URL: jsonlens-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for jsonlens-0.1.0.tar.gz
Algorithm Hash digest
SHA256 094c70677e2d3dbf2333187a00b115bef75c07b90e1bccf728ca971392ec6b41
MD5 3431e3157380d17a68c44b690166e694
BLAKE2b-256 5e5a752dcd59bfbabc03ada6cc3a1e7ed2bd1e4f6e91bec3426c8f04bdb35a51

See more details on using hashes here.

File details

Details for the file jsonlens-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jsonlens-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for jsonlens-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c98484423d3c42727e1716d8b584477dbfdb3bec2aeffc44601d0b58efa13f52
MD5 ab9340ac69663f21f6a940670a1d02a2
BLAKE2b-256 c386ec7ee4c689530ae2116b5c559ebd3e3647fcf5d5d9a76fe45ddf2a75eda0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page