Skip to content

Commit bd7ab7b

Browse files
authored
Update json-endpoint.mdx
fix collapsing and get rid of random highlighting
1 parent bc060e8 commit bd7ab7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/docs/browser-rendering/rest-api/json-endpoint.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The `/json` endpoint leverages [Workers AI](/workers-ai/) for data extraction. U
2727

2828
This example captures webpage data by providing both a prompt and a JSON schema. The prompt guides the extraction process, while the JSON schema defines the expected structure of the output.
2929

30-
```bash {11-13} collapse={15-48}
30+
```bash
3131
curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID/browser-rendering/json' \
3232
--header 'authorization: Bearer CF_API_TOKEN' \
3333
--header 'content-type: application/json' \
@@ -63,7 +63,7 @@ curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID
6363
```
6464

6565

66-
```json output {11-13} collapse={15-48}
66+
```json output collapse={15-48}
6767
{
6868
"success": true,
6969
"result": {
@@ -128,7 +128,7 @@ curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID
128128

129129
In this case, you supply a JSON schema via the `response_format` parameter. The schema defines the structure of the extracted data.
130130

131-
```bash {11-13} collapse={15-48}
131+
```bash
132132
curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID/browser-rendering/json' \
133133
--header 'authorization: Bearer CF_API_TOKEN' \
134134
--header 'content-type: application/json' \
@@ -160,7 +160,7 @@ curl --request POST 'https://api.cloudflare.com/client/v4/accounts/CF_ACCOUNT_ID
160160
```
161161

162162

163-
```json output {11-13} collapse={15-48}
163+
```json output collapse={13-68}
164164
{
165165
"success": true,
166166
"result": {

0 commit comments

Comments
 (0)