Fields
json
The `json` option of an extract field.
A JSONPath evaluated over JSON embedded in the page, such as __NEXT_DATA__, window.__INITIAL_STATE__ and JSON script tags, in document order; the first non-empty result wins. An invalid path is lint E009.
Type: string
#Example
{
"stock": {
"json": "$.props.pageProps.product.stock",
"type": "integer"
}
}
From the contract fixture product-page-list-regex-json, a program the test suite validates.