public static JsonNode buildResponse ( int status , String message , Object data ) { return SerializationUtils . toJson ( MapUtils . removeNulls ( MapUtils . createMap ( FIELD_STATUS , status , FIELD_MESSAGE , message , FIELD_DATA , data ) ) ) ; }
Build Json - RPC s response in JSON format .