mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
docs(json): correct examples (#3260)
This commit is contained in:
parent
847720dd41
commit
6b1d49df1e
@ -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";
|
||||
|
@ -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!
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user