/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chat;

import java.io.StringWriter;
import javax.json.Json;
import javax.json.JsonObject;

/**
 *
 * @author Bruno Barbosa da Silva
 * @E-mail: bbsgt@hotmail.com
 * @Site: www.brunobs.com.br
 * 
 */

public class Mensagem {
    
    private JsonObject json;

    public Mensagem(JsonObject json) {
        this.json=json;
    }
    
    public JsonObject getJson() {
        return json;
    }

    public void setJson(JsonObject json) {
        this.json = json;
    }

    @Override
    public String toString() {
        StringWriter writer=new StringWriter();
        Json.createWriter(writer).write(json);
        return writer.toString();
    }
    
    
}

@@ -295,16 +295,33 @@
 m.br%0A * 
+ Json da Mensagem
 %0A */%0A%0Apu

Update Mensagem.java