communication through json