Skip to content
Black November: every course and Teams plan at the lowest price of the year with code BLACKFRIDAY, through November 30. Shop the deal

JSONPath: Query JSON Structures

€19.00 34 Lessons 5 (1 review) Exercises
JSONPath: Query JSON Structures online course

About this course

JSONPath is a query language for JSON, in the same way XPath is for XML. When you test an API you use it to pull a single value out of a response, filter a list down to the items you care about, and assert on exactly that, instead of matching the whole body. This course covers JSONPath for API testers, with live exercises.

Common JSONPath expressions

Expression Returns
$.user.email the email field on the user object
$.items[0] the first item in the list
$.items[*].id the id of every item in the list
$.items[?(@.price > 10)] items priced above ten
$..sku every sku anywhere in the response

A quick example

# The id of the first order that is still open
$.orders[?(@.status=='open')][0].id

Inside the course you work through wildcards, recursive search, and filters against real API responses, each with instant feedback.

Course Content

0 Getting Started
1 lesson 3 min
34 lessons Total 1h 3 min total duration

About your instructor

Roy de Kleijn, Testsmith instructor

Roy de Kleijn · Software testing trainer

Roy de Kleijn has more than 15 years of hands-on experience in software testing and test automation. He writes and maintains every Testsmith course, so what you practise matches how the work is really done.

Connect on LinkedIn

Reviews

5 (1)
S
S. Samantray 2 weeks ago

I had a great learning experience with the JSONPath: Query JSON Structures course from TestSmith. The concepts were explained in a simple and clear manner, making it easy to understand how to navigate complex JSON structures, access nested objects, work with arrays, and extract specific values. As someone working in QA and API testing, I found this course particularly useful because these concepts are directly applicable to validating API responses in real-world testing scenarios. A special thanks to Roy de Kleijn for putting together this course and explaining the concepts so effectively. The practical approach made learning much easier and more interesting. I would definitely love to explore more courses from TestSmith, especially on Core Java and API Testing, with hands-on exercises and real-world examples. Looking forward to learning more and strengthening my technical skills with TestSmith!

Questions?

Contact us if you have any questions about this course.

Contact us

Frequently asked questions

Use a filter expression with @ for the current item. For example $.items[?(@.price > 10)] returns items priced above ten. You can compare numbers, strings, and booleans, and combine conditions, which lets you assert on just the records a test cares about instead of the whole response.

Use a wildcard across the array, for example $.items[*].id returns the id of every item. To search at any depth, the recursive operator $..id finds id wherever it appears in the response, which helps when the structure is nested or varies between calls.

The common pieces, child access, wildcards, and filters behave the same in most libraries. Edge cases like script expressions and the exact filter syntax can differ. The course keeps to the widely supported subset so your queries carry over between tools such as Playwright, REST clients, and test frameworks.

Yes. You get videos, quizzes, and hands-on labs, and you work through them at your own pace, with no fixed schedule.

No. The hands-on labs for this course run in your browser, so you can start practising straight away without any local setup.

Yes. You earn a certificate of completion when you finish the course.

Software testers and QA engineers who want practical, job-ready skills, from the fundamentals through to a real project.