Skip to main content

Robot Framework library for parsing json files

Project description

robotframework-jsonquery tests PyPI version

Simple wrapper for libraries used to query json files with different query language implementations

  • jsonpath-ng.ext (extended version with e.g. filters)
  • jsonpath-ng
  • jmespath

Example:

*** Settings ***
Library    JsonQuery    jsonpath-ng.ext

*** Test Cases ***
Read and query json file
    ${file}    Read Json File    sample.json
    ${result}   Query Json    ${file}    friends[?(@.id>1)]    #jsonpath-ng.ext syntax
*** Settings ***
Library    JsonQuery    jmespath

*** Test Cases ***
Read and query json file
    ${file}    Read Json File    sample.json
    ${result}   Query Json    ${file}    friends[?id>`1`]    #jmespath syntax

Documentation

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

robotframework_jsonquery-1.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file robotframework_jsonquery-1.0.3.tar.gz.

File metadata

File hashes

Hashes for robotframework_jsonquery-1.0.3.tar.gz
Algorithm Hash digest
SHA256 734b662e5cc59165034ce211d2b11a7b21eef0a3e4e0462f48b1b0851e838477
MD5 e082c69fc636dd5e15c937f8a2666e52
BLAKE2b-256 6e82351199aa6dc358555845b17a98ba340d0ddacc6152a835e8b238e53d5081

See more details on using hashes here.

File details

Details for the file robotframework_jsonquery-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_jsonquery-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d0ce068eede7ee230fd06782da741756dc7389ba0e2cdcb4395c6204b2c909d7
MD5 e9cbb73882c720041431b0793c9f14e7
BLAKE2b-256 12d125c9089df67bc2e27dd636b2f376f252eda4b3583cb1ee9161fe11fca807

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page