Split the Json class into JsonEncoder and JsonDecoder