src/test/java/io/swagger/test/client/ApiClient.java
/**
     * Serialize the given Java object into JSON string.
     */
Serialize the given Java object into JSON string.
Serialize the given Java object into JSON string .
public String serialize(Object obj) throws ApiException {
        try {
            if (obj != null) {
                return Json.mapper().writeValueAsString(obj);
            } else {
                return null;
            }
        } catch (Exception e) {
            throw new ApiException(500, e.getMessage());
        }
    }
public String serialize ( Object obj ) throws ApiException { try { if ( obj != null ) { return Json . mapper ( ) . writeValueAsString ( obj ) ; } else { return null ; } } catch ( Exception e ) { throw new ApiException ( 500 , e . getMessage ( ) ) ; } }
Serialize the given Java object into JSON string.
Serialize the given Java object into JSON string .