json format and switch between recharge and lunch