
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
JSONTas is a tool for generating dynamic JSON data.
JSONTas adds conditionals and logic to JSON files in order to create dynamic JSON data depending on which dataset you supply.
It opens up the possibility to create generic tools where most of the operations are done by executing JSONTas on the data.
Documentation: https://jsontas.readthedocs.io/en/latest
Install the project by running:
pip install jsontas
First we create two datasets. One for our 'dev' environment and one for our 'prod' environment.
.. code-block:: JSON
{ "mode": "dev", "database": "dev_db" }
.. code-block:: JSON
{ "mode": "prod", "database": "prod_db" }
Next up, let's create our JSONTas file.
.. code-block:: JSON
{ "database": { "host": "myawesomedb.example.com", "database": "$database" }, "message": { "$condition": { "if": { "key": "$mode", "operator": "$eq", "value": "dev" }, "then": "This is the DEV server.", "else": "This is the PROD server." } } }
.. code-block:: bash
jsontas -d dev.json data.json
.. code-block:: JSON
{ "database": { "host": "myawesomedb.example.com", "database": "dev_db" }, "message": "This is the DEV server." }
.. code-block:: bash
jsontas -d prod.json data.json
.. code-block:: JSON
{ "database": { "host": "myawesomedb.example.com", "database": "prod_db" }, "message": "This is the PROD server." }
These examples only show the bare minimum. For more examples look at our documentation at: https://jsontas.readthedocs.io/en/latest
If you are having issues, please let us know. Email tobias.persson@axis.com or just write an issue.
FAQs
JSONTas is a tool for generating dynamic JSON structures.
We found that jsontas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.