Class ValueResultJsonSerializer
java.lang.Object
org.mule.runtime.extension.api.persistence.value.ValueResultJsonSerializer
Serializer that can convert a
ValueResult type into a readable and processable JSON representation and from a JSON
String to an ValueResult instance- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.mule.runtime.api.value.ValueResultdeserialize(String valueResult) Deserializes a JSON representing aValueResultto an actualValueResultinstance.serialize(org.mule.runtime.api.value.ValueResult valueResult) Serializes to a JSON representation aValueResult
-
Constructor Details
-
ValueResultJsonSerializer
public ValueResultJsonSerializer() -
ValueResultJsonSerializer
public ValueResultJsonSerializer(boolean prettyPrinting)
-
-
Method Details
-
serialize
Serializes to a JSON representation aValueResult- Parameters:
valueResult-resultobject to serialize- Returns:
- The JSON representation of the given
ValueResult
-
deserialize
Deserializes a JSON representing aValueResultto an actualValueResultinstance.- Parameters:
valueResult- JSON representing aresult- Returns:
- A
ValueResultinstance
-