service/transportation-service/src/main/java/org/bananaforscale/util/JsonUtil.java
public static String createErrorMessage(String reason) {
        StringBuilder sb = new StringBuilder();
        sb.append("{")
                .append("\"error\":")
                .append("\"").append(reason).append("\"")
                .append("}");
        return sb.toString();
    }
/**
     * Create a JSON wrapped error message
     *
     * @param reason
     * @return
     */
Create a JSON wrapped error message
@param reason
@return
Create a JSON wrapped error message @param reason @return
public static String createErrorMessage(String reason) {
        StringBuilder sb = new StringBuilder();
        sb.append("{")
                .append("\"error\":")
                .append("\"").append(reason).append("\"")
                .append("}");
        return sb.toString();
    }
public static String createErrorMessage ( String reason ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "{" ) . append ( "\"error\":" ) . append ( "\"" ) . append ( reason ) . append ( "\"" ) . append ( "}" ) ; return sb . toString ( ) ; }
Create a JSON wrapped error message
 @param reason
 @return
Create a JSON wrapped error message @param reason @return