mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
c059a3d343
* BREAKING(json): remove `json` from module names * revert * fixes
26 lines
641 B
TypeScript
26 lines
641 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
/**
|
|
* Utilities for parsing streaming JSON data.
|
|
*
|
|
* ```ts
|
|
* import { JsonStringifyStream } from "@std/json";
|
|
* import { assertEquals } from "@std/assert";
|
|
*
|
|
* const stream = ReadableStream.from([{ foo: "bar" }, { baz: 100 }])
|
|
* .pipeThrough(new JsonStringifyStream());
|
|
*
|
|
* assertEquals(await Array.fromAsync(stream), [
|
|
* `{"foo":"bar"}\n`,
|
|
* `{"baz":100}\n`
|
|
* ]);
|
|
* ```
|
|
*
|
|
* @module
|
|
*/
|
|
|
|
export * from "./concatenated_json_parse_stream.ts";
|
|
export * from "./types.ts";
|
|
export * from "./parse_stream.ts";
|
|
export * from "./stringify_stream.ts";
|