re.mko.jsnprsr:jsnprsr-speedtests

A Lean JSON Parser

Лицензия

Лицензия

Группа

Группа

re.mko.jsnprsr
Идентификатор

Идентификатор

jsnprsr-speedtests
Последняя версия

Последняя версия

0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

re.mko.jsnprsr:jsnprsr-speedtests
A Lean JSON Parser

Скачать jsnprsr-speedtests

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/re.mko.jsnprsr/jsnprsr-speedtests/ -->
<dependency>
    <groupId>re.mko.jsnprsr</groupId>
    <artifactId>jsnprsr-speedtests</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/re.mko.jsnprsr/jsnprsr-speedtests/
implementation 're.mko.jsnprsr:jsnprsr-speedtests:0.1'
// https://jarcasting.com/artifacts/re.mko.jsnprsr/jsnprsr-speedtests/
implementation ("re.mko.jsnprsr:jsnprsr-speedtests:0.1")
're.mko.jsnprsr:jsnprsr-speedtests:jar:0.1'
<dependency org="re.mko.jsnprsr" name="jsnprsr-speedtests" rev="0.1">
  <artifact name="jsnprsr-speedtests" type="jar" />
</dependency>
@Grapes(
@Grab(group='re.mko.jsnprsr', module='jsnprsr-speedtests', version='0.1')
)
libraryDependencies += "re.mko.jsnprsr" % "jsnprsr-speedtests" % "0.1"
[re.mko.jsnprsr/jsnprsr-speedtests "0.1"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.json : json jar 20140107
com.eclipsesource.minimal-json : minimal-json jar 0.9.1

test (3)

Идентификатор библиотеки Тип Версия
re.mko.jsnprsr : jsnprsr jar 0.1
junit : junit jar 4.11
com.google.caliper : caliper jar 1.0-beta-1

Модули Проекта

Данный проект не имеет модулей.

JsnPrsr: A Lean JSON Parser

About

JsnPrsr is a fast, small, and lightweight JSON parser (and serializer), written in Java, with no external dependencies.

Usage

The entry point of the JsnPrsr library is the JSON class, which can be used to both parse and serialize JSON Values:

Value value = JSON.parse("{\"foo\": \"bar\", \"baz\": [4, 5]}");

System.out.println(value.getType());
System.out.println(value.getObject().get("foo").getString());
System.out.println(value.getObject().get("baz").getArray().get(0).getNumber());

value.getObject().put("foo", Value.array(Value.string("a"), Value.string("b")));

System.out.println(JSON.serialize(value));

Modification tips

  • If you want to track line numbers, edit Parser.java and comment out the lines referencing lineNumber.

  • If you want to support trailing commas in arrays, see the comment in Parser.readArray() and Parser.readObject(). This makes it support a more human writable form of JSON, accepting for example:

      {
        "foo": 1,
        "bar": 2,
      }
    

    and

      [
        "foo",
        "bar",
      ]
    

Версии библиотеки

Версия
0.1