added JSON support
Changed amount type to Int (cents)