json-stream

WebJar for json-stream

License

License

MIT
Categories

Categories

JSON Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

json-stream
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

json-stream
WebJar for json-stream
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/mmalecki/json-stream

Download json-stream

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/json-stream/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>json-stream</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/json-stream/
implementation 'org.webjars.npm:json-stream:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/json-stream/
implementation ("org.webjars.npm:json-stream:1.0.0")
'org.webjars.npm:json-stream:jar:1.0.0'
<dependency org="org.webjars.npm" name="json-stream" rev="1.0.0">
  <artifact name="json-stream" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='json-stream', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "json-stream" % "1.0.0"
[org.webjars.npm/json-stream "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

json-stream Build Status

New line-delimeted JSON parser with a stream interface.

Installation

npm install json-stream

Usage

var JSONStream = require('json-stream');

var stream = JSONStream();

stream.on('data', function (chunk) {
  console.dir(chunk);
});
stream.write('{"a":');
stream.write('42}\n');
stream.write('{"hel');
stream.write('lo": "world"}\n');

Will output:

{ a: 42 }
{ hello: 'world' }

If invalid JSON gets written, it's silently ignored.

Versions

Version
1.0.0