Added addJson method to Payload class