[FOLD] fix amountFromJson