std/json/mod.ts
Asher Gomez c059a3d343
BREAKING(json): remove json from module names (#5173)
* BREAKING(json): remove `json` from module names

* revert

* fixes
2024-07-02 11:57:00 +10:00

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";