@Kentzo, then you could make your API method return directly a DriveInfo 
object, and annotate it with:

```java
@SelectJson("objects")
@OnlyElement
```

This will tell jclouds to return the value of the "objects" field, and extract 
the only element from the returned list. This way you shouldn't need a parser. 
If I am not wrong, CloudStack does something similar in their 
[VolumeApi](https://github.com/jclouds/jclouds/blob/master/apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/VolumeApi.java#L80-L81).

@shevchenator Gson by default supports serialization and deserialization of 
Enums, so you shouldn't need to do anything special.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/12#issuecomment-21937995

Reply via email to