> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/cms/wordpress/helpers-functions-1/weglot_json_treat_page.md).

# weglot\_json\_treat\_page

This filter allow you to modifiy the translated content when this one is a json.

The filter receives the translated JSON response (a string) and must return it.

```php
add_filter( 'weglot_json_treat_page', 'custom_weglot_json_treat_page' );
function custom_weglot_json_treat_page( $json ) {
    // Edit the translated JSON here.
    return $json;
}
```
