maljson

Mostly org.json compatible json library. Derived from Android.

License

License

Categories

Categories

JSON Data
GroupId

GroupId

com.addthis
ArtifactId

ArtifactId

maljson
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

maljson
Mostly org.json compatible json library. Derived from Android.
Project Organization

Project Organization

AddThis
Source Code Management

Source Code Management

https://github.com/addthis/maljson

Download maljson

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.5
com.google.code.findbugs : jsr305 jar 2.0.2

test (2)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.5
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

maljson

Looking for a json parser?

Looking to parse json? You should probably use Jackson.

Project Summary

org.json is the original java library prototype for handling json. It is unfortunately only available under a non-free license.

The Android team created a cleanroom library that is api compatible with org.json but licensed under the Apache license version 2. maljson re-packages the Android work as a stand alone library. If you need a json parser, you should use Jackson, but if you need org.json compatibility then maljson might be of help.

Difference from Android upstream:

  • Syntax exceptions include line/column numbers
  • New getters for retrieving line/column numbers of JSONObject and JSONArray items
  • Trailing commas in objects are allowed
  • Trailing commas in arrays are not interpreted as null
  • A few missing methods (such as keySet()) were added.

Android copyright notices and comments have been retained in the classes that originated there. Diverged from Android libcore at d62e296abe060ff7557e731fe70f240dbaa142e8.

Praise should go to the Android team for the work that they have done, but bugs should be reported here (not on the Android tracker).

Building

maljson uses Apache Maven which is beyond the scope to detail. The super simple quick start is:

mvn test

Use

<dependency>
  <groupId>com.addthis</groupId>
  <artifactId>maljson</artifactId>
  <version>latest-and-greatest</version>
</dependency>

You can either install locally, or releases will eventually make their way to maven central.

Administrative

Versioning

It's x.y.z where:

  • x: something major happened
  • y: next release
  • z: bug fix only

License

maljson is released under the Apache License Version 2.0. See Apache or the LICENSE for details.

com.addthis

AddThis

Versions

Version
0.2.0
0.1.1
0.1.0