Skip to main content

This is the simplest module for quick work with json files.

Project description

Jsons Library

What is this?

the module adds new features that are not available in the standard Json module

Quick Guide

The module allows you to create an object of the Jsons class and work with it as with standard json Create an instance of the Jsons class and pass the path to your JSON file jsons = Jsons('test.json')


Using

Using the library is simple:

Let's import it first: First, import everything from the library (use the from ... import * construct).

Examples of all operations:

Calculate the maximum nesting depth of JSON data using the 'max_depth' function:

depth = jsons.max_depth()

Find all occurrences of a given value in JSON data using 'find_by_value' function:

key_results = jsons.find_by_value('key')

Find all occurrences of a given key in JSON data using 'find_by_key' function:

key_results = jsons.find_by_key('value')

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

JsonsTest-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

JsonsTest-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file JsonsTest-0.0.1.tar.gz.

File metadata

  • Download URL: JsonsTest-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for JsonsTest-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6c5fe6951c30024e88f450137ced4f1bdab2a3eaf8031df4692a7be54774201c
MD5 53af32ce849f5b4b11094aab054f9a77
BLAKE2b-256 91ec05d405c8e8451aeb8b3ab45c242ad407367a13860f6669db6770014c7830

See more details on using hashes here.

File details

Details for the file JsonsTest-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: JsonsTest-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for JsonsTest-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd125f81860984df7ca7a733825a8bfecc959314ef0191576fb40ca27b28a9c3
MD5 72d131abc51ebbca07b59d32b88d5aad
BLAKE2b-256 7a210b497e222e823392905278261c93baeaf31ec97a327efb32c43bad3e495c

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