Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. @JsonCreator
  2. public OptionTransaction(Map<String,Object> jsonObj){
  3. Map<String,Object> jsonOption = (Map<String, Object>) jsonObj.get("option");
  4.  
  5. Map<String,Object> optionPriceObj = (Map<String, Object>) jsonOption.get("price");
  6. BigDecimal optionValue = new BigDecimal((Double) optionPriceObj.get("value"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement