[FOLD] Fix amountFromJson