crwdns149389:0crwdne149389:0

crwdns149391:0crwdne149391:0

crwdns149393:0crwdne149393:0

{
    "underlined":true,
    "color":"red",
    "text":"Hello World!"
}

crwdns149395:0crwdne149395:0

import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.format.TextColors;
import org.spongepowered.api.text.format.TextStyles;
import org.spongepowered.api.text.serializer.TextSerializers;

Text text = Text.of(TextColors.RED, TextStyles.UNDERLINE, "Hello World!");
String jsonText = TextSerializers.JSON.serialize(text);