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

com.github.dozermapper.extra.converters.JSONArrayStringConverter Maven / Gradle / Ivy

The newest version!
package com.github.dozermapper.extra.converters;

import com.alibaba.fastjson2.JSONArray;
import com.github.dozermapper.core.DozerConverter;

public final class JSONArrayStringConverter extends DozerConverter {

	public JSONArrayStringConverter() {
		super(JSONArray.class, String.class);
	}

	@Override
	public JSONArray convertFrom(String source, JSONArray destination) {
		return JSONArray.parseArray(source);
	}

	@Override
	public String convertTo(JSONArray source, String destination) {
		return JSONArray.toJSONString(source);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy