docs(json): correct examples (#3260)

This commit is contained in:
Asher Gomez 2023-03-17 17:46:52 +11:00 committed by GitHub
parent 847720dd41
commit 6b1d49df1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ export {
* ```ts
* import { ConcatenatedJsonParseStream } from "https://deno.land/std@$STD_VERSION/encoding/json/stream.ts";
*
* const url = "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.concatenated-json";
* const url = "https://deno.land/std@$STD_VERSION/json/testdata/test.concatenated-json";
* const { body } = await fetch(url);
*
* const readable = body!
@ -61,7 +61,7 @@ export {
* import { TextLineStream } from "https://deno.land/std@$STD_VERSION/streams/text_line_stream.ts";
* import { JsonParseStream } from "https://deno.land/std@$STD_VERSION/encoding/json/stream.ts";
*
* const url = "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.jsonl";
* const url = "https://deno.land/std@$STD_VERSION/json/testdata/test.jsonl";
* const { body } = await fetch(url);
*
* const readable = body!
@ -81,7 +81,7 @@ export {
* import { JsonParseStream } from "https://deno.land/std@$STD_VERSION/encoding/json/stream.ts";
*
* const url =
* "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.json-seq";
* "https://deno.land/std@$STD_VERSION/json/testdata/test.json-seq";
* const { body } = await fetch(url);
*
* const delimiter = "\x1E";

View File

@ -15,7 +15,7 @@ function isBrankChar(char: string) {
* ```ts
* import { ConcatenatedJsonParseStream } from "https://deno.land/std@$STD_VERSION/json/concatenated_json_parse_stream.ts";
*
* const url = "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.concatenated-json";
* const url = "https://deno.land/std@$STD_VERSION/json/testdata/test.concatenated-json";
* const { body } = await fetch(url);
*
* const readable = body!

View File

@ -19,7 +19,7 @@ function isBrankString(str: string) {
* import { TextLineStream } from "https://deno.land/std@$STD_VERSION/streams/text_line_stream.ts";
* import { JsonParseStream } from "https://deno.land/std@$STD_VERSION/json/json_parse_stream.ts";
*
* const url = "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.jsonl";
* const url = "https://deno.land/std@$STD_VERSION/json/testdata/test.jsonl";
* const { body } = await fetch(url);
*
* const readable = body!
@ -39,7 +39,7 @@ function isBrankString(str: string) {
* import { JsonParseStream } from "https://deno.land/std@$STD_VERSION/json/json_parse_stream.ts";
*
* const url =
* "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.json-seq";
* "https://deno.land/std@$STD_VERSION/json/testdata/test.json-seq";
* const { body } = await fetch(url);
*
* const delimiter = "\x1E";