Transformers
json
Parse raw JSON strings into structured objects or arrays.
The json transformer parses a JSON string (such as inline script tags, Next.js hydration data, Redux store states, or JSON-LD blocks) into a parsed JavaScript object or array.
Example
{ selector: script#reduxStore, transform: json }