DefaultJSONTransformer transformer = new DefaultJSONTransformer();
Class<?> inputObjectType = messageContext.getRequestContext().getSelectedResource().getSelectedMethodMetaData().getInputObjectType();
try {
output = transformer.unMarshal(new InputStreamReader(messageContext.getRequestConfigurationContext().getRequest().getInputStream()), inputObjectType);
setInputObjectToParameterArray(messageContext, output);
} catch (IOException e) {
log.error(e);
throw new CuubezException(CuubezExceptionConstance.PARSING_EXCEPTION);
}