added gson method to JsonMessageBuilder