liquid-json

WebJar for liquid-json

License

License

Categories

Categories

JSON Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

liquid-json
Last Version

Last Version

0.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

liquid-json
WebJar for liquid-json
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/postmanlabs/liquid-json

Download liquid-json

How to add to project

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

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.

liquid-json

Implementation of JSON which ignores BOM and shows more detailed error messages on parse failures.

usage

$ npm install liquid-json --save;
var LJSON = require('liquid-json');
LJSON.parse('{ "hello": "world" }');
LJSON.stringify({ hello: 'world' });

LJSON.parse accepts reviver function as second parameter and LJSON.stringify accepts standard JSON parameters. All errors raised from this module has error name as JSONError.

asynchronous flavour

var LJSON = require('liquid-json').async;

LJSON.parse('{ "hello": "world" }', function (err, obj) {
    console.log(obj); // logs the object
});
LJSON.stringify({ hello: 'world' }, function (err, text) {
    console.log(text); // logs '{"hello":"world"}'
});

attributions

org.webjars.npm

Postman Inc.

Versions

Version
0.3.1