Added JsonEncoder to flux commands