Skip to main content

Jsonpython

A package to deserialize and serialize json.

Installing:

pip install jsonpython

Example:

data.json

{
  "name": "Alex",
  "age": 23,
  "car": {
    "model": "Tesla X",
    "cost": 40000,
    "company": {
      "name": "Tesla"
    }
  }
}

main.py

from jsonpython import *

jobj = get_json_object("data.json")

print(jobj['name'])  # Alex
print(jobj['car']['model'])  # Tesla X


class Company:
    name: str


class Car:
    model: str
    cost: int
    company: Company


class Person:
    age: int
    name: str
    car: Car


person = from_file(Person, "data.json")

print(person.car.model)  # Tesla X

Metadata

Release files for jsonpython 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jsonpython 0.0.8
File Size Uploaded Provenance Actions
jsonpython-0.0.8.tar.gz 4.0 kB Without provenance Details for jsonpython-0.0.8.tar.gz

Release files / jsonpython-0.0.8.tar.gz

Download URL jsonpython-0.0.8.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
96f1149663ee567c38c26a39977476a504b72111bac1ff634fad1df08a8a8727
BLAKE2b-256 checksum
How to use checksums
4df7ca5a5945191415a1846983bdb10274b48e104e2162f00f1e370f669afafd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for jsonpython 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page