package valandur.webapi.json.serializer.misc;

import org.spongepowered.api.command.CommandSource;
import valandur.webapi.api.json.WebAPIBaseSerializer;

import java.io.IOException;

public class CommandSourceSerializer extends WebAPIBaseSerializer<CommandSource> {
    @Override
    public void serialize(CommandSource value) throws IOException {
        writeValue(value.getName());
    }
}

@@ -358,29 +358,140 @@
 rite
-Value(value.getName()
+StartObject();%0A        writeField(%22id%22, value.getIdentifier());%0A        writeField(%22name%22, value.getName());%0A        writeEndObject(
 );%0A 

Improve command source serializer