io.deepsense.neptune.clientlibrary.api.JsonSerializationUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-client-library Show documentation
Show all versions of neptune-client-library Show documentation
Enables integration with Neptune in your Java code
/**
* Copyright (c) 2016, CodiLime Inc.
*/
package io.deepsense.neptune.clientlibrary.api;
import io.deepsense.neptune.apiclient.ApiClient;
import io.deepsense.neptune.apiclient.JSON;
public final class JsonSerializationUtils {
private JsonSerializationUtils() {
}
private static final JSON jsonSerializer = new JSON(new ApiClient());
public static String serializePlainObject(Object object) {
return jsonSerializer.serialize(object);
}
public static String serializeSwaggerModel(Object swaggerModel) {
return jsonSerializer.serialize(swaggerModel);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy