A Python package to manipulate objects in JSON files.
Project description
JSONManipulator
JSONManipulator is a Python package to manipulate objects in JSON files.
Installation
Use the package manager pip to install JSONManipulator.
pip install JSONManipulator
Usage
Firstly, you need to set up your initial JSON file.
from JSONManipulator.core import set_up
set_up(
full_path="enter/full/path/to/your/file/here"
)
Functionality
As soon as you set up your file, you can use classes of the package:
- GetInformation (retrieve information about specific objects in the file).
- ChangeValue (change values of specific objects in the file).
- ChangeAllValues (change values of all objects in the file).
- DeleteObject (delete specific objects in the file).
- AddObject (add a new object to the file).
- AddKey (add a new key to each object in the file).
More detailed information about the usage of the package can be found in the examples
directory.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
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
JSONManipulator-1.0.tar.gz
(133.4 kB
view hashes)