rjson

Recursive, reflection based json to / from object conversion

License

License

Categories

Categories

JSON Data
GroupId

GroupId

com.daveayan
ArtifactId

ArtifactId

rjson
Last Version

Last Version

1.11
Release Date

Release Date

Type

Type

jar
Description

Description

rjson
Recursive, reflection based json to / from object conversion
Project URL

Project URL

https://github.com/daveayan/rjson

Download rjson

How to add to project

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

Dependencies

compile (6)

Group / Artifact Type Version
commons-lang : commons-lang jar 2.3
com.daveayan : mirage jar 1.9
com.daveayan : transformers jar 1.3
commons-io : commons-io jar 2.0.1
commons-logging : commons-logging jar 1.1.1
joda-time : joda-time jar 2.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.5

Project Modules

There are no modules declared in this project.

Rjson

What is this?

Utility to serialize Java Objects to Json and deserialize Json to Java Objects

Why another framework?

I like other json frameworks, flexjson and gson. However there are a few features that I don't find them all in one single framework. Hence Rjson was created. These features are:

  • Use reflection and recursion to work with every single property in an object. Respect the transient properties.
  • For application specific classes print the fully qualified class name in json as well with the key "className"
  • Support to extend the framework for transformation helpers

How do I use it?

  • Get an instance of Rjson object using newInstance()
  • Use methods toJson or toObject to serialize or deserialize

Versions

Version
1.11
1.10
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.1
1.0