Class SimpleJsonSerializer

java.lang.Object
org.springframework.integration.json.SimpleJsonSerializer

public final class SimpleJsonSerializer extends Object
Extremely simple JSON serializer. Only handles top level properties accessed by getters.
Since:
5.0
Author:
Gary Russell, Artem Bilan
  • Method Details

    • toJson

      public static String toJson(Object bean, String... propertiesToExclude)
      Convert the bean to JSON with the provided properties.
      Parameters:
      bean - the object to serialize.
      propertiesToExclude - the property names to ignore.
      Returns:
      the JSON.