JSONManipulator

A Python package to manipulate objects in JSON files.


Keywords
Python, JSON, Objects, object-oriented-programming
License
MIT
Install
pip install JSONManipulator==3.1.1

Documentation

JSONManipulator

https://travis-ci.com/pandrey2003/JSONManipulator.svg?branch=master https://coveralls.io/repos/github/pandrey2003/JSONManipulator/badge.svg?branch=master CodeFactor Updates Python 3 Documentation Status https://pepy.tech/badge/jsonmanipulator

JSONManipulator is a Python package to retrieve, add, delete, change and store 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 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:

  1. GetInformation (retrieve information about particular objects in the file).
  2. ChangeValue (change values of particular objects in the file).
  3. ChangeAllValues (change values of all objects in the file).
  4. DeleteObject (delete particular objects in the file).
  5. AddObject (add a new object to the file).
  6. 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 and docs folders.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT