Fixed json sending/receiving