Top Description Fields Constructors Methods
com.oracle.bmc.model.internal

public Class JsonConverter

extends Object
Class Inheritance
Imports
com.oracle.bmc.http.client.Serializer, jakarta.annotation.Nonnull

A helper class to support json related operations

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <T> T
jsonBlobToObject(String jsonBlob, Class<T> clazz)

Get desired object from the json provided

public static <T> String
objectToJsonBlob(T object)

Get json string from the object param

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG

Constructor Detail

JsonConverterback to summary
public JsonConverter()

Method Detail

jsonBlobToObjectback to summary
public static <T> T jsonBlobToObject(String jsonBlob, Class<T> clazz)

Get desired object from the json provided

objectToJsonBlobback to summary
public static <T> String objectToJsonBlob(T object)

Get json string from the object param