Skip to main content

Preprocessor for JSON files with extended syntax

Project description

Getting Started

The JsonPreprocessor is a Python 3 package that enables programmers to extend the functionality of JSON files with features such as:

  • Adding comments

  • Importing other JSON files

  • Overwriting existing parameters with new values

The JsonPreprocessor processes these enhanced JSON files and returns a dictionary object containing the deserialized data.

How to install

The JsonPreprocessor can be installed in two different ways.

  1. Installation via PyPi (recommended for users)

    pip install JsonPreprocessor

    JsonPreprocessor in PyPi

  2. Installation via GitHub (recommended for developers)

    • Clone the JsonPreprocessor repository to your machine.

      git clone https://github.com/test-fullautomation/python-jsonpreprocessor.git

      JsonPreprocessor in GitHub

    • Use the following command to install JsonPreprocessor (executed in repository main folder):

      python -m pip install .

      Or:

      python -m pip install --proxy <proxy> .

      This command will also download and install all dependencies that are required to work with the source files in the current repository. After the initial installation of JsonPreprocessor is done, you have the following two possibilities:

      1. Clean the previous installation:

        python "./cleanup_installation.py"

        cleanup_installation.py explicitly deletes all files and folders within the component installation folder under site-packages and also deletes local build artefacts.

      2. Render the component documentation:

        python "./genpackagedoc.py"

        This would e.g. be required in case of changes in the interface of JsonPreprocessor.

        The documentation is rendered by a separate application called GenPackageDoc, that is part of the build dependencies and runtime dependencies of JsonPreprocessor.

        GenPackageDoc needs to be configured. Details about how to do this, can be found in the README.rst (sections Install dependencies and Configure dependencies).

    • Use the following command to build JsonPreprocessor (executed in repository main folder):

      python -m build .

      Or:

      python -m pip config set global.proxy <proxy>
      python -m build .

Package Documentation

A detailed documentation of the JsonPreprocessor can be found here: JsonPreprocessor.pdf

Feedback

To give us a feedback, you can send an email to Thomas Pollerspöck

In case you want to report a bug or request any interesting feature, please don’t hesitate to raise a ticket.

Maintainers

Thomas Pollerspöck

Contributors

Mai Dinh Nam Son

Tran Duy Ngoan

License

Copyright 2020-2026 Robert Bosch GmbH

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

License: Apache v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the 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

jsonpreprocessor-0.12.0.tar.gz (355.0 kB view details)

Uploaded Source

Built Distribution

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

jsonpreprocessor-0.12.0-py3-none-any.whl (353.5 kB view details)

Uploaded Python 3

File details

Details for the file jsonpreprocessor-0.12.0.tar.gz.

File metadata

  • Download URL: jsonpreprocessor-0.12.0.tar.gz
  • Upload date:
  • Size: 355.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jsonpreprocessor-0.12.0.tar.gz
Algorithm Hash digest
SHA256 e5fce45b750b19de904b4e6063f140e5c6da84e39ad7bccb823da3e6e12641ea
MD5 01bce7c05c5449cf8c96caa98f09947e
BLAKE2b-256 53cd3b991b5762fc957bd35f217283417a068ed561da4c21ef606071f18bcb6a

See more details on using hashes here.

File details

Details for the file jsonpreprocessor-0.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jsonpreprocessor-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 746377ffb95eb036847c5fbd8743db7173ece07b10d4f24c2b8ca42417a5ba7e
MD5 aa97907b91f87bc2e666b1a062831944
BLAKE2b-256 af68cc5b77179a04f78a6885ece35ee8827accb2156cb5f6074f8d1496eed274

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