---
title: "Discussion on \"Playwright - Not just for Frontend\" | Hashnode"
description: "Discussion on \"Playwright - Not just for Frontend\". API Testing"
url: "https://hashnode.com/posts/playwright-not-just-for-frontend/63edd4969612405e16d13ad2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Playwright - Not just for Frontend](https://puppo92.hashnode.dev/playwright-not-just-for-frontend?utm_source=hashnode&utm_medium=feed)

API Testing

Feb 16, 2023 · 7 min read · puppo92.hashnode.dev  
Read the article

-   [#playwright](https://hashnode.com/tag/playwright)
-   [#api-testing](https://hashnode.com/tag/api-testing)

## Written by

[Luca Del Puppo](https://hashnode.com/@Puppo92)

@Puppo92 · Treviso, IT

  
[View profile](https://hashnode.com/@Puppo92)

Google Developer Expert, GitKraken Ambassador, Former Microsoft MVP, AI Native Engineer at NearForm\_ and JavaScript enthusiastic.

Full Stack Developer and JavaScript and TypeScript enthusiastic.

## Responses 1

Markdown supported · ⌘↵ to post

[Albert Oliva Roura](https://hashnode.com/@AlbertOliva)

[Mar 8, 2023](https://hashnode.com/posts/playwright-not-just-for-frontend/63edd4969612405e16d13ad2/comment/6408c5e905e9d6e8212c658b)

Good post!

Does Playwright have a way to validate the json schema we receive in a response?

Thanks!

[Luca Del Puppo](https://hashnode.com/@Puppo92)

[Mar 8, 2023](https://hashnode.com/posts/playwright-not-just-for-frontend/63edd4969612405e16d13ad2/comment/6408c5e905e9d6e8212c658b#reply-6409081a4b4818e3636f7420)

Hi [Albert Oliva Roura](https://hashnode.com/@AlbertOliva), Thanks.

To validate the JSON or you can use the expect directly, like in my example; you can find more on the jest [documentation](https://jestjs.io/docs/expect#asymmetric-matchers)

Or you can build your own validation using other libraries like zod, typebox or fluent-json-schema.

The official way is by the expect, but I understand is not so simple.
