Skip to content

apptik/JustJson

Repository files navigation

JustJson

Build Status Join the chat at https://gitter.im/apptik/JustJson StackExchange

JSON helper library for Android and Java

JustJson is NOT a standard json2pojo library with multiple adapters.

It simply converts json string/stream to java Objects

  • JsonObject - Iterable handy Map wrapper
  • JsonArray - List implementation
  • JsonString - String wrapper
  • JsonBoolean - boolean wrapper
  • JsonNumber - number wrapper

which are then flexible & easy to read/modify/iterate/search/wrap.

It came out of the need for a dynamic, simple and lightweight Json parser for Android(unlike Jackson). The code started as a mixture of https://android.googlesource.com/platform/libcore/+/master/json/ and the Json utils from https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/util .

JustJson is super simple, super small and fast json lib.

It can be used on Android and Java in general.

Download

Find the latest JARs or grab via Maven:

<dependency>
  <groupId>io.apptik.json</groupId>
  <artifactId>json-XXX</artifactId>
  <version>1.0.4</version>
</dependency>

or Gradle:

compile 'io.apptik.json:json-XXX:1.0.4'

Downloads of the released versions are available in Sonatype's releases repository.

Snapshots of the development versions are available in Sonatype's snapshots repository.

Features

  • Fast and easy Json Parser and Writer (comparable or better performance than Android Native, GSON and Jackson libraries)
  • Flexible Json Wrapper helper implementations that hold json data and media type. Ideal for Model classes.
  • Json-Schema validation
  • Android UI generation

Examples

TODO

Questions

StackOverflow with tag 'JustJson'

Modules

  • Json Core - the json core module responsible for mapping json string/stream to basic Java Objects

Maven Central VersionEye

  • Json Warpper - json wrapper classes that are used to wrap generic json representation around some defined interface

Maven Central VersionEye

Maven Central VersionEye

Maven Central VersionEye

  • Json AWS - helper for working with AWS json libraries

Maven Central VersionEye

Licence

Copyright (C) 2016 AppTik Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.