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.3.tar.gz (3.0 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.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: JsonsTest-0.0.3.tar.gz
  • Upload date:
  • Size: 3.0 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.3.tar.gz
Algorithm Hash digest
SHA256 4be9abdc6c249b83bdc8f3add8e8b2b30951586bb6b00d3616b0e3957a64a002
MD5 b1eea27662bc5627a741a0b6be3da789
BLAKE2b-256 bea485141613863127bae82b82a36d2a90116823f12990c34901decfa006ca16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: JsonsTest-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 60746a1ec85f812a394fe1d65c5ad5aa2919738ff4372f1df4d6b6e1a5d8c481
MD5 1be294002bb57763d6a47d04018f162d
BLAKE2b-256 d24d194750d023d4bf992f36d69dcfa333d7f5c6eff3e59844666d61b34a2000

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