Skip to main content

A JSON parser written in Python.

Project description

jsonmgnt

A simple JSON parsing tool.

Installation

Install it via pip:

pip install jsonmgnt

Usage

import jsonmgnt

dat2 = jsonmgnt.parse('{"Invoker": "SunStrike"}')
print(dat2['Invoker']) # SunStrike

dat1 = jsonmgnt.parse('{"Hammer Level": 25}')
print(dat1['Hammer Level']) # 25

The examples using the find_keys().

data = [
    {"key": 1},
    {"key": 2},
    {"my": 
        {"key": 
            {
                "chain": "A",
                "rope": 5,
                "string": 1.2,
                "cable": False
            }
        }
    },
    {"your":
    	{"key":
            {
                "chain": "B",
                "rope": 7,
                "string": 0.7,
                "cable": True
            }
    	}
    }
]
p.find_keys(data, ['rope', 'cable'])
[[5, False], [7, True]]

p.find_keys(data, ['rope', 'cable'], group=False)
[5, False, 7, True]

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

jsonmgnt-1.1.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

jsonmgnt-1.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file jsonmgnt-1.1.1.tar.gz.

File metadata

  • Download URL: jsonmgnt-1.1.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for jsonmgnt-1.1.1.tar.gz
Algorithm Hash digest
SHA256 902ca584e3702e6c6ba331eedad7d743b12fca1e43606eb013d9942f2ac25802
MD5 bf52574904bd1efca1ffad08569ca3cc
BLAKE2b-256 af2d47537fcd6c2f093827906d36e28e3737662331a615a00cb8663cd13ac4df

See more details on using hashes here.

File details

Details for the file jsonmgnt-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: jsonmgnt-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for jsonmgnt-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 938a7a6bed52c895cda48f41c0f91a51a8946f018c64852a1d91110e939e09a8
MD5 097e57c63468dfec0b22700df49582e9
BLAKE2b-256 2ad5cc82a1d0e9797bba4bb051eb8122e463360afc678b4ae655562e7943ff1b

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