---
title: "Comment by Albert Oliva Roura on \"Playwright - Not just for Frontend\" | Hashnode"
description: "Good post! Does Playwright have a way to validate the json schema we receive in a response? Thanks!"
url: "https://hashnode.com/posts/playwright-not-just-for-frontend/63edd4969612405e16d13ad2/comment/6408c5e905e9d6e8212c658b"
---

[Discussion](https://hashnode.com/posts/playwright-not-just-for-frontend/63edd4969612405e16d13ad2)

Comment [Playwright - Not just for Frontend](https://hashnode.com/posts/playwright-not-just-for-frontend/63edd4969612405e16d13ad2)

[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.
