Generate scripts for JSON instantly for faster development and testing
Project description
JSONQL: JSON Query and Path Generator
JSONQL is a Python library that helps you quickly query JSON data and generate JSON paths for debugging and development. It provides functions to locate keys by a given value and recursively generate full paths for nested JSON structures.
Features
-
keys_by_value(data, target_value):
Search your JSON data for a specific target value and return a list of key names where that value appears. -
generate_path(data, payload_name="payload"):
Recursively generate JSON paths for each key in your JSON data. Useful for understanding the structure of nested JSON objects. -
recursive_path_finder(current_path, value, result):
A helper function that traverses the JSON structure to build complete key paths.
Installation
Clone the repository and install the package locally:
https://github.com/ray837/JSONQL.git
cd JSONQL
pip install .
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rayson-0.0.4.tar.gz.
File metadata
- Download URL: rayson-0.0.4.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
745786d48b525d811aa178c68af6626c5410cdd5b7d47f122d384bf9022a7b77
|
|
| MD5 |
28ee5b3eca5a8f2c79f3e58d2bb0d81a
|
|
| BLAKE2b-256 |
788b08ddfaa0503c22f67f2f4ae366b870a5bc1bbaaf6147622eea80cd8836d0
|
File details
Details for the file rayson-0.0.4-py3-none-any.whl.
File metadata
- Download URL: rayson-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e900d4d58ee9122d05ee95837ae13b0f3d3e99444f2f60feeaeea0d131b6f649
|
|
| MD5 |
5e0335f49d93bcad30d1242c9bcbd463
|
|
| BLAKE2b-256 |
964f882f874a29348fe63d339a2328f809cec0736348e1e8879fb41a8e92a11d
|