made it compat with 0.6.8 where the json field is amount