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

com.fedapay.utile.JsonToFedaPayObject Maven / Gradle / Ivy

package com.fedapay.utile;

import java.util.Map;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonToFedaPayObject {
	
	@SuppressWarnings("unchecked")
	public static Map jsonToFedapayObject(String jsonData) throws Exception {
		ObjectMapper mapper = new ObjectMapper();
		mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
		mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
		return mapper.readValue(jsonData, Map.class);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy