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

org.springframework.social.partnercenter.serialization.Json Maven / Gradle / Ivy

Go to download

A provider extension for Spring Social to enable connectivity with Microsoft and an API binding for Microsoft's Partner Center API.

There is a newer version: 10.11.0
Show newest version
package org.springframework.social.partnercenter.serialization;

public class Json {
	private static JsonConverter jsonConverter;

	static {
		jsonConverter = new JsonConverter();
	}

	public static JsonConverter instance(){
		return new JsonConverter();
	}

	public static JsonConverter instance(JsonSerializationSettings serializationSettings){
		return new JsonConverter(serializationSettings);
	}

	public static  T fromJson(String jsonString, Class targetClass){
		return jsonConverter.fromJson(jsonString, targetClass);
	}
	public static  T fromJson(String jsonString, Class targetClass, JsonSerializationSettings serializationSettings){
		return jsonConverter.fromJson(jsonString, targetClass, serializationSettings);
	}

	public static  String toJson(T objectToSerialize){
		return jsonConverter.toJson(objectToSerialize);
	}

	public static  String toJson(T objectToSerialize, JsonSerializationSettings serializationSettings){
		return jsonConverter.toJson(objectToSerialize, serializationSettings);
	}

	public static void configure(JsonSerializationSettings serializationSettings) {
		jsonConverter.configure(serializationSettings);
	}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy