All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.espr.mvc.json.BoonImpl Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package it.espr.mvc.json;

import org.boon.json.JsonFactory;
import org.boon.json.ObjectMapper;

public class BoonImpl implements Json {

	private ObjectMapper boon;

	public BoonImpl() {
		super();
		this.boon = JsonFactory.create();
	}

	@Override
	public  Type deserialise(Class type, String string) {
		return boon.fromJson(string, type);
	}

	@Override
	public String serialise(Object object) {
		return boon.toJson(object);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy