svenson

Java5 JSON parser/generator

License

License

Revised BSD License
GroupId

GroupId

com.google.code.svenson
ArtifactId

ArtifactId

svenson
Last Version

Last Version

1.5.12
Release Date

Release Date

Type

Type

jar
Description

Description

svenson
Java5 JSON parser/generator
Project URL

Project URL

http://code.google.com/p/svenson/
Source Code Management

Source Code Management

https://github.com/fforw/svenson/

Download svenson

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
commons-io : commons-io jar 2.4
commons-beanutils : commons-beanutils jar 1.9.4
com.esotericsoftware.reflectasm : reflectasm Optional jar 1.09
org.slf4j : slf4j-api jar 1.7.25

test (7)

Group / Artifact Type Version
org.apache.logging.log4j : log4j-slf4j-impl jar 2.0.2
org.apache.logging.log4j : log4j-core jar 2.0.2
org.slf4j : jcl-over-slf4j jar 1.7.25
org.slf4j : jul-to-slf4j jar 1.7.25
org.easymock : easymock jar 2.3
org.hamcrest : hamcrest-all jar 1.1
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

Svenson

svenson is a Java5 JSON generator/parser. It lets you convert Java object graphs into JSON and vice versa. svenson offers an API and annotations to aid you in this.

Features

  • Free choice of java side objects: From total generic list/map scenarios to mapping POJOs to/from JSON or a mix between those two, from JSON generation being something your classes handle themselves to something JSONifying them.

  • Annotations and interfaces to help you to create your own applications that work with JSON.

  • Quality Assurance with unit tests ensures svenson keeps working after changes.

Svenson cycle

Javadoc

Current release javadoc

Genesis

The initial code for svenson grew out of a simple generator tool class I once wrote for my projects. I wrote JSON parsing code while working on my own couchdb driver called jcouchdb. Later I decided to create a standalone svenson project because the outcome seemed to be sufficient for all kinds of scenarios not involving jcouchdb.

Svenson and slf4j

Svenson now uses slf4j for logging, so you need to configure slf4j to log to your favourite logging API. see The slf4j manual for details.

If you use slf4j-log4j12, you still need a valid log4j configuration. svenson (especially parsing) will be slowed down considerably when that log4j configuration is missing.

example log4j configuration

log4j.rootLogger=ERROR, Console

# uncomment to set svenson logging to DEBUG
#log4j.logger.org.svenson=DEBUG

# log to the console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%-5p %c: %m%n

Maven Repository

Now that we're synced by the big repositories, you just need to add the following dependency to your pom.xml:

<dependency>
  <groupId>com.google.code.svenson</groupId>
  <artifactId>svenson</artifactId>
  <version>1.5.3</version>
</dependency>

Improve Svenson

I'm always interested in getting new ideas to improve my projects, so if your requirements are not met by svenson, you could try contacting me to give me a clearer idea of what could be added.

Versions

Version
1.5.12
1.5.11
1.5.10
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.5
1.4.4
1.4.3
1.4.2
1.4.0
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2