Now sends and receives JSONObjects as messages