robotframework-jsonlibrary is a Robot Framework test library designed for manipulating JSON objects within test automation scripts. It leverages JSONPath expressions for efficient querying, adding, updating, and deleting data within JSON structures. The current version is 0.5, with releases occurring sporadically, indicating active maintenance.
pip install -U robotframework-jsonlibraryVerified import paths — ran on the pinned version, not inferred.
This Robot Framework example demonstrates basic JSON manipulation. It creates a JSON object (as a Robot Framework dictionary), adds a new field using `Add Object To Json`, retrieves a value with `Get Value From Json`, and updates an existing field using `Update Value To Json`. The `Should Be Equal As Strings` keyword is used for assertions. This code is designed to be placed in a `.robot` file.
Upgrade to Python 3.x.
Ensure test cases capture the return value of modifying keywords, e.g., `${json_obj}= Add Object To Json ${json_obj} ...`Consult `jsonpath-ng` documentation and issue tracker for parsing-specific problems.
Monitor `jsonpath-ng` and `ply` for security updates, or consider vendoring `ply` with security patches if a fix is not available upstream.