Class JsonToMessageFunction

  • All Implemented Interfaces:
    Function<String,​String>

    public class JsonToMessageFunction
    extends Object
    implements Function<String,​String>
    Attempts to extract an error message from a JSON payload. If the message cannot be found then the original JSON string is returned
    Author:
    Jeremy Unruh